RRF (version 1.7)

treesize: 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 RRF, 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 RRF object.

See Also

RRF

Examples

Run this code
# NOT RUN {
data(iris)
iris.rf <- RRF(Species ~ ., iris)
hist(treesize(iris.rf))
# }

Run the code above in your browser using DataCamp Workspace