RandomForest-class {party} | R Documentation |
A class for representing random forest ensembles.
Objects can be created by calls of the form new("RandomForest", ...)
.
ensemble
:"list"
, each element
being an object of class "BinaryTree"
.data
:"ModelEnv"
.weights
:where
:data
:"ModelEnv"
.responses
:"VariableFrame"
storing the values of the response variable(s). cond_distr_response
:predict_response
:prediction_weights
:signature(object = "RandomForest")
: ... signature(object = "RandomForest")
: ... set.seed(290875) ### 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))