Learn R Programming

rerf (version 2.0.4)

RunPredict: Predict class labels on a test set using a single tree.

Description

This is the base function called by Predict.

Usage

RunPredict(X, tree)

Arguments

X

an n sample by d feature matrix (preferable) or data frame which was used to train the provided forest.

tree

a tree from a forest returned by RerF.

Value

predictions an n length vector of prediction based on the tree provided to this function