CreateModelComparison: A helper function used by GetModelComparison and...

Description Usage Arguments Value Examples

View source: R/ModelGeneration.R

Description

A helper function used by GetModelComparison and ModelComparison to create the ModelComparison object. It gives the object it's class and assigns it it's members

Usage

1
2
CreateModelComparison(model.list, multi.class, force.prepped,
  diff.names = NULL)

Arguments

model.list

a list of models that are already trained. The name of the model.list should be accurate to the names of the models, unless other names are given in diff.names

multi.class

a boolean value of whether the classification output is more than two outputs

force.prepped

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

diff.names

a vector or list containing the names of the model.list models, in that respective order. This is optional if the names are already attatched to the model.list and will default to NULL.

Value

the fully created ModelComparison object

Examples

1
2
3
# This function is used by GetModelComparison and ModelComparison to create the
# ModelComparison object. The follow code is what is used by ModelComparison:
# CreateModelComparison(model.list, multi.class, F, names(model.list))

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