BSstack_predict {Sstack} | R Documentation |
Predict using a set of Stacked Random Forest models.
Description
Gives predictions for a linear bootstrapped stacked Random Forest predictors. Gives the predictions of each individual model as well as the linearlly combined predictions.
Usage
BSstack_predict(BSmodel, Xi)
Arguments
BSmodel |
List containing the individual Random Forest models, their weights, and feature names. Generated using BSstack function. |
Xi |
NxM datatable containing input features to be predicted. Must contain all features used in the individual RF models. |
Details
Required Packages: randomForest
Value
NxL+1 matrix where L is the number of individual RF models. Predictions for the ith RF model is found in the ith column of this matrix while predictions for the stacked model is in the final column.
[Package Sstack version 1.0.1 Index]