Thanks. Credit for the reprex goes to @apreshill (here) and @Max (here).
Looks like it. That the model I defined here with tune()
placeholders:
tune_spec <-
rand_forest(mtry = tune(),
min_n = tune()) %>%
set_engine("ranger") %>%
set_mode("classification")
which becomes part of the workflow in this step...
tuneboth_wf <-
workflow() %>%
add_recipe(tune_rec) %>%
add_model(tune_spec)