MergeModels: To merge the models into singe predictions

Description Usage Arguments Value Examples

View source: R/MergeModels.R

Description

Takes a weighted average of the prediction scores to create and ensembled model.

Usage

1

Arguments

x

matrix or dataframe of predictions from singe models

weights

vector of weights to apply to the dataframe

Value

single prediction for each observation

Examples

1
2
3
Preds<- cbind(1:5,6:10)
MergeModels(Preds, c(.4,.6)) # different weights
MergeModels(Preds) # Equal weights

kuhnrl30/RandomActsofPizza documentation built on May 20, 2019, 7:06 p.m.