predict.ModelComparison: Predicts values for a ModelComparison object.

Description Usage Arguments Value Examples

View source: R/ModelGeneration.R

Description

Predicts values for a ModelComparison object.

Usage

1
2
## S3 method for class 'ModelComparison'
predict(object, newdata, ...)

Arguments

object

The ModelComparison object whose models will be predicted on.

newdata

A dataframe of new data that the models will use to predict.

...

Other arguments, if needed

Value

A list of dataframes, where each dataframe is the predictions from the respective model for the two output classes.

Examples

1
2
3
4
5
6
# load the csv file for the dataset "titanic"
# titanic <- PrepareNumericTitanic()
# create the ModelComparison object by passing in the training set and training labels
# comp <- GetModelComparisons(titanic[, -1], titanic[, 1])
# predict by passing in the new df for the object to predict on
# pred.list <- predict(comp, titanic[, -1])

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