RandomForest-class {party}R Documentation

Class "RandomForest"

Description

A class for representing random forest ensembles.

Objects from the Class

Objects can be created by calls of the form new("RandomForest", ...).

Slots

ensemble:
Object of class "list", each element being an object of class BinaryTree-class.
data:
an object of class ModelEnv.
responses:
an object of class "VariableFrame" storing the values of the response variable(s).
cond_distr_response:
a function computing the conditional distribution of the response.
predict_response:
a function for computing predictions.
prediction_weights:
a function for extracting weights from terminal nodes.

Methods

treeresponse
signature(object = "RandomForest"): ...
weights
signature(object = "RandomForest"): ...

Examples


    ### honest (i.e., out-of-bag) cross-classification of 
    ### true vs. predicted classes
    table(mammoexp$ME, predict(cforest(ME ~ ., data = mammoexp, 
                               control = cforest_classical(ntree = 50)), 
                               OOB = TRUE))

[Package party version 0.9-996 Index]