predict.rforest: Random forest predictions

View source: R/rforest.R

predict.rforestR Documentation

Random forest predictions

Description

Compute predictions from an "rftree" object.

Usage

## S3 method for class 'rforest'
predict(object, newX, predict.all = FALSE, ...)

Arguments

object

An object of class "rftree".

newX

Data frame or matrix of new feature values.

predict.all

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

Value

A vector of predictions. For binary outcomes coded as 0/1, the predictions represent Pr(Y = 1).


bgreenwell/treemisc documentation built on Oct. 26, 2022, 12:56 a.m.