BuildModels: A helper function used by the GetModelComparison function. It...

Description Usage Arguments Value Examples

View source: R/ModelGeneration.R

Description

A helper function used by the GetModelComparison function. It will take the given inputs and build the models for the ModelComparison object.

Usage

1
2
BuildModels(training.data, training.classes, trctrl, tune.length,
  multi.class, build.flags, force.prepared = F)

Arguments

training.data

The training data to build the models.

training.classes

The labels for the training data.

trctrl

The trctrl used for the caret package to train the models.

tune.length

The amound of time to tune to the model. Defaults to 1.

multi.class

A boolean value of whether the model has multiple classification outputs

build.flags

A vector of flags that decide what models to build.

force.prepared

A boolean value describing whether the dataset was forced prepared into one hot encoding for training. Only applicable with categorical data

Value

A vector of the models created.

Examples

1
2
3
# This function is used by GetModelComparison. It's usage is as follows:
# modelVec = BuildModels(training.data, training.classes, trctrl,
#            tune.length, multi.class, build.flags, force.prepared = forced.prepared)

orionw/BestModel documentation built on Aug. 17, 2019, 7:29 p.m.