Size of trees in an ensemble
Size of trees (number of nodes) in and ensemble.
treesize(x, terminal=TRUE)
x |
an object of class |
terminal |
count terminal nodes only ( |
A vector containing number of nodes for the trees in the
randomForest
object.
The randomForest
object must contain the forest
component; i.e., created with randomForest(...,
keep.forest=TRUE)
.
Andy Liaw andy\_liaw@merck.com
data(iris) iris.rf <- randomForest(Species ~ ., iris) hist(treesize(iris.rf))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.