set_args | R Documentation |
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(object, ...)
set_mode(object, mode)
object |
A model specification. |
... |
One or more named model arguments. |
mode |
A character string for the model type (e.g. "classification" or "regression") |
set_args()
will replace existing values of the arguments.
An updated model object.
rand_forest()
rand_forest() %>%
set_args(mtry = 3, importance = TRUE) %>%
set_mode("regression")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.