| pip_get_params | R Documentation |
Returns the current default values of all tunable (non-dependency)
parameters across the pipeline. These are the parameters that can be
updated via pip_set_params(). Parameters wired to another step's output
via ~step_name are excluded.
pip_get_params(x)
x |
A pipeflow pip or view |
Named list of tunable parameter values. If the same parameter name appears in multiple steps, the first occurrence in pipeline order is returned.
p <- pip_new() |>
pip_add("load", \(n = 100, seed = 42) seq_len(n)) |>
pip_add("model", \(x = ~load, lambda = 0.1) x * lambda)
# ~load is a dependency — only non-dependency params are returned
pip_get_params(p) # list(n = 100, seed = 42, lambda = 0.1)
# Useful as a guide for pip_set_params()
pip_set_params(p, params = list(n = 20, lambda = 0.5))
pip_run(p) |> pip_collect_out()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.