12.11 Updating tuning parameters:
To see what we need to update/ finalize, we can call the function in the {dials} package
mtry()## # Randomly Selected Predictors (quantitative)
## Range: [1, ?]
We can also use the {dials} package to see the tuning range
min_n()## Minimal Node Size (quantitative)
## Range: [2, 40]
To update/finalize or adjust the hyperparameters we can use the update() function to update in-place:
parameters(rf_spec_tuned) %>%
update(mtry = mtry(c(1, 4)))## Collection of 3 parameters for tuning
##
## identifier type object
## mtry mtry nparam[+]
## min_n min_n nparam[+]
## reg regularization.factor nparam[+]
We see that mtry is now a complete numeric parameter