Description Usage Arguments Value Examples
View source: R/StackingHelpers.R
A helper function to get predictions added to a dataset.
1 | GetPredictionsForStacking(models, x.values)
|
models |
The models that will add their predictions to the DataFrame. |
x.values |
The DataFrame that will be added on too and predicted on. |
The given DataFrame (x.values) with an additional column of predictions for each model given.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.