Learn R Programming

boostr (version 1.0.0)

makePredictions: Gather predictions from an ensemble of estimators.

Description

A parallelized for-loop that goes through each estimator in the given ensemble and collects its predictions in for each row of the given data.

Usage

makePredictions(estimators, newdata, .parallel = FALSE)

Arguments

estimators
a list of functions which take a single (mandatory) argument and returns class label.
newdata
the data to feed to each estimator in estimators
.parallel
a boolean indicating if the predictions should happen in parallel through estimators. Defaulted to FALSE.

Value

a matrix of predicted responses (either numeric or character, if predictions are factor variables). The columns corresponds to rows in newdata so that class-prediction aggregation can be done more effeciently.