Description Usage Arguments Value Examples
View source: R/ModelGeneration.R
A helper function used by the GetModelComparison function. It will take the given inputs and build the models for the ModelComparison object.
1 2 | BuildModels(training.data, training.classes, trctrl, tune.length,
multi.class, build.flags, force.prepared = F)
|
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 |
A vector of the models created.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.