Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Note

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

Author(s)

See Also

Examples

data(iris)
iris.rf <- RRF(Species ~ ., iris)
hist(treesize(iris.rf))

RRF

Regularized Random Forest

v1.9.1
GPL (>= 2)
Authors
Fortran original by Leo Breiman and Adele Cutler, R port by Andy Liaw and Matthew Wiener, Regularized random forest for classification by Houtao Deng. Regularized random forest for regression by Xin Guan.
Initial release
2018-07-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.