pull_dials_object() can extract a single dials parameter object from different types of objects (e.g. parameter sets, recipes, etc.).
pull_dials_object()
dials
pull_dials_object(x, id, ...)# S3 method for parameters pull_dials_object(x, id, ...)# S3 method for recipe pull_dials_object(x, id, ...)# S3 method for model_spec pull_dials_object(x, id, ...)# S3 method for workflow pull_dials_object(x, id, ...)
# S3 method for parameters pull_dials_object(x, id, ...)
# S3 method for recipe pull_dials_object(x, id, ...)
# S3 method for model_spec pull_dials_object(x, id, ...)
# S3 method for workflow pull_dials_object(x, id, ...)
The results of a call to parameters(), a recipe, model specification, or workflow.
parameters()
A single string for the id of the parameter.
id
Not currently used.
A dials parameter object.
# NOT RUN { glmn_param <- parameters(lambda = penalty(), mixture()) pull_dials_object(glmn_param, "lambda") # fails: # pull_dials_object(glmn_param, "penalty") # }
Run the code above in your browser using DataLab