MajorityWeight: A function for voting. This is used by the Ensemble to...

Description Usage Arguments Value Examples

View source: R/Ensembling.R

Description

A function for voting. This is used by the Ensemble to predict on new data if the voting type is the same as this function name.

Usage

1
MajorityWeight(list.of.predictions, weight.list)

Arguments

list.of.predictions

A list of lists where each sublist is a prediction from one of the models in the Ensemble.

weight.list

A list of weights for the respective models, to be used in the voting.

Value

A vector containing the predictions from the combined weighted vote of all models

Examples

1
2
# This function is used by predict.Ensemble. It's usage is as follows:
# MajorityWeight(preds, Ensemble$weights)

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