remove_model | R Documentation |
Removes an individual model specification from a model grid. If the model has been trained, the fitted model will also be deleted.
remove_model(model_grid, model_name)
model_grid |
|
model_name |
|
model_grid
library(magrittr)
# Pre-allocate empty model grid.
mg <- model_grid()
# Add random forest model.
mg <-
mg %>%
add_model(model_name = "Random Forest Test", method = "rf", tuneLength = 5)
# Remove random forest model again.
remove_model(mg, model_name = "Random Forest Test")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.