Description Usage Arguments Value Author(s) See Also Examples
Generates list of models of class train
1 2 | run_models(train_x, train_y, seed = 1, num_folds = 2,
trim_models = TRUE, light = FALSE, prepro_methods = NULL)
|
train_x |
data.frame or tibble of predictor variables |
train_y |
vector of target variable |
seed |
Integer. Seed for caretEnsemble::caretList() |
num_folds |
Integer. Number of folds. |
trim_models |
Logical. If TRUE, excess will be omited from models |
light |
'logical.' FALSE data will train on only 5 algorithms. if TRUE (default), data will train on all 68 models |
prepro_methods |
prepro_methods string or vector of strings of preprocessing methods. See also preProcess |
This function returns a list
of trained models:
"Dallin Webb <dallinwebb@byui.edu>"
caretList
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
models_list <- run_models(train_x = train_x,
train_y = train_y,
seed = 1,
num_folds = 2,
trim_models = TRUE,
light = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.