predict.rf.class: Random Forest Prediction

Description Usage Arguments Details Value Author(s)

Description

A method for Random Forest prediction. Predicts by, for each tree in the forest, doing a standard decision tree prediction. Then, the most likely vote across the trees is used for predictions.

Usage

1
2
## S3 method for class 'rf.class'
predict(object, X, ...)

Arguments

object

a fit object of class rf.class.

X

an [n, p] predictor to predict the class of. Must be specified in an appropriate 2d array, even if you only want a single sample predicted.

Details

If the two or more classes are tied for the maximum number of votes across the trees, the predicted class is chosen amongst the classes tied for the maximal number of votes at random.

Value

an [n] array of predictions.

Author(s)

Eric Bridgeford


ebridge2/badmf documentation built on June 4, 2019, 8:53 a.m.