powered by
set_args() can be used to modify the arguments of a model specification while set_mode() is used to change the model's mode.
set_args()
set_mode()
set_args(object, ...)set_mode(object, mode)
set_mode(object, mode)
A model specification.
One or more named model arguments.
A character string for the model type (e.g. "classification" or "regression")
An updated model object.
set_args() will replace existing values of the arguments.
# NOT RUN { rand_forest() rand_forest() %>% set_args(mtry = 3, importance = TRUE) %>% set_mode("regression") # }
Run the code above in your browser using DataLab