Learn R Programming

tsensembler (version 0.1.0)

combine_predictions: Combining the predictions of several models

Description

This function simply applies a weighted average, where the predictions of the base models Y_hat are weighted according to their weights W. If a committee is specified, only models in the committee are weighted.

Usage

combine_predictions(Y_hat, W, committee = NULL)

Arguments

Y_hat

a data.frame with the predictions of the base models;

W

a matrix or data.frame with the weights of the base models;

committee

A list containing the ids of the models in the committee.