Update a single parameter in a parameter set
Usage
# S3 method for class 'parameters'
update(object, ...)
Examples
params <- list(lambda = penalty(), alpha = mixture(), `rand forest` = mtry())
pset <- parameters(params)
pset
#> Collection of 3 parameters for tuning
#>
#> identifier type object
#> lambda penalty nparam[+]
#> alpha mixture nparam[+]
#> rand forest mtry nparam[?]
#>
#> Parameters needing finalization:
#> # Randomly Selected Predictors ('rand forest')
#>
#> See `?dials::finalize` or `?dials::update.parameters` for more information.
#>
update(pset, `rand forest` = finalize(mtry(), mtcars), alpha = mixture(c(.1, .2)))
#> Collection of 3 parameters for tuning
#>
#> identifier type object
#> lambda penalty nparam[+]
#> alpha mixture nparam[+]
#> rand forest mtry nparam[+]
#>