Compute predictions from an "rftree"
object.
# S3 method for rforest
predict(object, newX, predict.all = FALSE, ...)
A vector of predictions. For binary outcomes coded as 0/1, the predictions represent Pr(Y = 1).
An object of class "rftree"
.
Data frame or matrix of new feature values.
Logical indicating whether or not to return predictions
for each individual tree. Default is FALSE
, which only returns the
aggregated predictions.
Additional optional arguments. (Currently ignored.)