Hi: I've been enjoying tidymodels, but now trying to combine several different models via stacks: all looks good except that when I call tune_grid() I get an error from my existing parameter control = control_grid(event_level = 'second', verbose = TRUE)
and instead (per the docs) I have to pass in control = control_stack_grid()
. But now I don't know how to specify the event_level or verbosity. Can anyone help?
For clarity, here's the pre-stack code for a single model:
tm.workflow %>%
tune_grid(resamples = tm.samples,
grid = tm.grid,
metrics = metric_set(accuracy, bal_accuracy, roc_auc, kap),
control = control_grid(event_level = 'second', verbose = TRUE))
and here's the code for a model that's going to be included in a stack:
tm.workflow %>%
tune_grid(resamples = tm.samples,
grid = tm.grid,
metrics = metric_set(accuracy, bal_accuracy, roc_auc, kap),
control = control_stack_grid()) # how do I pass in event_level and verbose?
Thanks!
Mike