View source: R/select_models.R
select_models | R Documentation |
The function provides a necessary interface for minimizing the size of output created with train(). It not only selects the models, but also the data, predictions, and all other necessary information.
select_models(train_output, models)
train_output |
The output created with train() function. |
models |
The vector including either the names of models or their indexes, that we want to select. |
The train_output with selected models.
## Not run:
out <- train(iris, 'Species', random_evals = 30, bayes_iters = 0)
new_out <- select_models(out, c('random_forest_RS_1', 'xgboost_RS_14'))
new_out2 <- select_models(out, c(1, 15, 30, 45))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.