prepData: A helper function used by the GetModelComparison function. If...

Description Usage Arguments Value Examples

View source: R/ModelGeneration.R

Description

A helper function used by the GetModelComparison function. If the data given is categorical and not in one-hot encoding the model training will fail. This will attempt to conver the dataset into that format, or, to send an error if it fails to do so.

Usage

1
prepData(training.set)

Arguments

training.set

the training data that is in the wrong format. This is the same dataframe as in GetModelComparison parameters.

Value

The dataframe in one-hot encoding.

Examples

1
2
# This function is used by GetModelComparison. It's usage is as follows:
# training.set = prepData(training.set)

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