GetPredictionsForStacking: A helper function to get predictions added to a dataset.

Description Usage Arguments Value Examples

View source: R/StackingHelpers.R

Description

A helper function to get predictions added to a dataset.

Usage

1
GetPredictionsForStacking(models, x.values)

Arguments

models

The models that will add their predictions to the DataFrame.

x.values

The DataFrame that will be added on too and predicted on.

Value

The given DataFrame (x.values) with an additional column of predictions for each model given.

Examples

1
2
3
4
5
6
iris <- PrepareIris()
x.values = iris[, 1:4]
# create the models
comp <- GetModelComparisons(x.values, iris[,5])
# get the new dataframe
df.for.stacking <- GetPredictionsForStacking(comp$model.list, x.values)

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