I’m using {workflowsets}
from {tidymodels}
for the first time, and I’m following along chapter in Tidy Modeling with R.
In the book, the authors use a fixed, regular grid hyperparameter search:
grid_results <-
all_workflows %>%
workflow_map(
fn = "tune_grid",
seed = 1503,
resamples = concrete_folds,
grid = 25, # See note below
control = grid_ctrl
)
Help for the tune::tune_grid()
function specifies that “[a]n integer denotes the number of candidate parameter sets to be created automatically.”
While this has worked for me, I wanted to try a space-filling design, such as those created with dials::grid_max_entropy
. However, this function (much like all grid-generating functions in {tune}
) requires a param or parameter set object.
How can I extract parameters en bloc from a workflow set, seeing as how there is no parameters
method for workflowsets
(yet)?
Thanks!
Edit: added fn
argument to workflow_map
for clarity, even though it’s not present in the book (tune_grid
is the default value for the arg).