run_models: Run many models on train data

Description Usage Arguments Value Author(s) See Also Examples

Description

Generates list of models of class train

Usage

1
2
run_models(train_x, train_y, seed = 1, num_folds = 2,
  trim_models = TRUE, light = FALSE, prepro_methods = NULL)

Arguments

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

Value

This function returns a list of trained models:

Author(s)

"Dallin Webb <dallinwebb@byui.edu>"

See Also

caretList

Examples

 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)

BYUIDSS/HSPSModelR documentation built on May 10, 2019, 1:20 p.m.