Learn R Programming

dials (version 1.2.1)

pull_dials_object: Return a dials parameter object associated with parameters

Description

[Deprecated]

This 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.).

Usage

pull_dials_object(x, id, ...)

Value

A dials parameter object.

Arguments

x

The results of a call to parameters(), a recipe, model specification, or workflow.

id

A single string for the id of the parameter.

...

Not currently used.

Examples

Run this code
glmn_param <- parameters(lambda = penalty(), mixture())
# pull_dials_object(glmn_param, "lambda")
# ->
extract_parameter_dials(glmn_param, "lambda")

Run the code above in your browser using DataLab