treesize {RRF} | R Documentation |
Size of trees in an ensemble
Description
Size of trees (number of nodes) in and ensemble.
Usage
treesize(x, terminal=TRUE)
Arguments
x |
an object of class |
terminal |
count terminal nodes only ( |
Value
A vector containing number of nodes for the trees in the
RRF
object.
Note
The RRF
object must contain the forest
component; i.e., created with RRF(...,
keep.forest=TRUE)
.
Author(s)
Andy Liaw andy_liaw@merck.com
See Also
Examples
data(iris)
iris.rf <- RRF(Species ~ ., iris)
hist(treesize(iris.rf))
[Package RRF version 1.9.4 Index]