update.parameters | R Documentation |
Update a single parameter in a parameter set
## S3 method for class 'parameters'
update(object, ...)
object |
A parameter set. |
... |
One or more unquoted named values separated by commas. The names
should correspond to the |
The modified parameter set.
params <- list(lambda = penalty(), alpha = mixture(), `rand forest` = mtry())
pset <- parameters(params)
pset
update(pset, `rand forest` = finalize(mtry(), mtcars), alpha = mixture(c(.1, .2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.