
Return a dials parameter object associated with parameters
Source:R/pull_dials_object.R
pull_dials_object.RdThis function has been deprecated; please use
hardhat::extract_parameter_dials() instead.
pull_dials_object() can extract a single dials parameter object from
different types of objects (e.g. parameter sets, recipes, etc.).
Arguments
- x
The results of a call to
parameters(), a recipe, model specification, or workflow.- id
A single string for the
idof the parameter.- ...
Not currently used.
Examples
glmn_param <- parameters(lambda = penalty(), mixture())
# pull_dials_object(glmn_param, "lambda")
# ->
extract_parameter_dials(glmn_param, "lambda")
#> Amount of Regularization (quantitative)
#> Transformer: log-10 [1e-100, Inf]
#> Range (transformed scale): [-10, 0]