Description Usage Arguments Value Examples
Consolidate model (and model training) settings from shared and model specific settings to one complete caret model specification. In case there is an overlap between the two, the model specific settings will apply.
1 | consolidate_model(shared_settings, model)
|
shared_settings |
|
model |
|
list
, a complete model and training specification, that
can be trained with caret.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(magrittr)
library(dplyr)
library(caret)
# create model grid.
mg <-
model_grid() %>%
share_settings(y = iris[["Species"]],
x = iris %>% select(-Species),
trControl = trainControl()) %>%
add_model("FunkyForest", method = "rf",
preProc = c("center", "scale", "pca"),
custom_control = list(preProcOptions = list(thresh = 0.8)))
# consolidate all settings to complete caret model specification.
consolidate_model(mg$shared_settings, mg$models$FunkyForest)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.