rfOOB | R Documentation |
The method returns internal out-of-bag performance evaluation for given random forests model
.
rfOOB(model)
model |
The model of type |
The method returns random forest performance estimations obtained via its out-of-bag sets. The performance measures returned are classification accuracy, average classification margin, and correlation between trees in the forest. The classification margin is defined as the difference between probability of the correct class and probability of the most probable incorrect class. The correlation between models is estimated as the ratio between classification margin variance and variance of the forest as defined in (Breiman, 2001).
The list containing three performance measures computed with out-of-bag instances is returned:
accuracy |
the classification accuracy of the forest, |
margin |
the average margin of classification with the forest, |
correlation |
the correlation between trees in the forest. |
Marko Robnik-Sikonja.
Leo Breiman: Random Forests. Machine Learning Journal, 2001, 45, 5-32
CORElearn
,
CoreModel
.
# build random forests model with certain parameters modelRF <- CoreModel(Species ~ ., iris, model="rf", selectionEstimator="MDL", minNodeWeightRF=5, rfNoTrees=100, maxThreads=1) rfOOB(modelRF) destroyModels(modelRF) # clean up
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.