treesize

0th

Percentile

Size of trees in an ensemble

Size of trees (number of nodes) in and ensemble.

Keywords
regression, classif
Usage
treesize(x, terminal=TRUE)
Arguments
x

an object of class randomForest, which contains a forest component.

terminal

count terminal nodes only (TRUE) or all nodes (FALSE

Value

A vector containing number of nodes for the trees in the randomForest object.

Note

The randomForest object must contain the forest component; i.e., created with randomForest(..., keep.forest=TRUE).

See Also

randomForest

Aliases
  • treesize
Examples
# NOT RUN {
data(iris)
iris.rf <- randomForest(Species ~ ., iris)
hist(treesize(iris.rf))
# }
Documentation reproduced from package randomForest, version 4.6-14, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.