makePredictions: Gather predictions from an ensemble of estimators.

Description Usage Arguments Value

View source: R/makePredictions.R

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

1
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.


boostr documentation built on May 2, 2019, 1:42 p.m.