update.parameters {dials} | R Documentation |
Update a single parameter in a parameter set
Description
Update a single parameter in a parameter set
Usage
## S3 method for class 'parameters'
update(object, ...)
Arguments
object |
A parameter set. |
... |
One or more unquoted named values separated by commas. The names
should correspond to the |
Value
The modified parameter set.
Examples
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)))
[Package dials version 1.3.0 Index]