cartnodes: Number of Nodes

Description Usage Arguments Value See Also Examples

Description

Return the number of nodes of a decision tree.

Usage

1
cartnodes(model)

Arguments

model

The decision tree.

Value

The number of nodes.

See Also

CART, cartdepth, cartinfo, cartleafs, cartplot

Examples

1
2
3
4
require (datasets)
data (iris)
model = CART (iris [, -5], iris [, 5])
cartnodes (model)

fdm2id documentation built on Oct. 29, 2021, 5:07 p.m.

Related to cartnodes in fdm2id...