GetTrainingInfo: A helper function used by the GetModelComparison function.

Description Usage Arguments Value Examples

View source: R/ModelGeneration.R

Description

It takes the given inputs, data, and trctrl needed to build the models.

Usage

1
2
GetTrainingInfo(training.set, training.classes.input, validation,
  trctrl.given)

Arguments

training.set

The training data to build the models.

training.classes.input

The labels for the training data.

validation

The type of model validation: cross-validation ("cv"), or a training split (in the form XX/XX where XX is a two digit percent).

trctrl.given

The trctrl given in GetModelComparison parameters for custom training.

Value

A vector containg the following for training the models. It is given in this order: training.data, training.classes, trctrl

Examples

1
2
# This function is used by GetModelComparison. It's usage is as follows:
# training.info <- GetTrainingInfo(training.set, training.classes.input, validation, trctrl)

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