Description Usage Arguments Value Examples
Define and add an individual model (and model training) specification to an existing model grid.
1 | 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.
1 2 3 4 5 6 7 8 9 | 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.