add_model | R Documentation |
Define and add an individual model (and model training) specification to an existing model grid.
add_model(model_grid, model_name = NULL, custom_control = NULL, ...)
model_grid |
|
model_name |
|
custom_control |
|
... |
All (optional) individual settings (including model training settings) that the user wishes to set for the new model. |
model_grid
with an additional individual model specification.
library(magrittr)
# Pre-allocate empty model grid.
mg <- model_grid()
# Add 'random forest' model spec.
mg <-
mg %>%
add_model(model_name = "Random Forest Test", method = "rf", tuneLength = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.