print_leaf_dt {lazy.tree}R Documentation

Description

Print the Leaf Node Information

Usage

print_leaf_dt(obj, title = "", dump = 0)

Arguments

obj

The output of DecTree or list of nodes.

title

The title string

dump

= 1 to output result

Value

A data frame consisting of

Node the node number
PA   the parent number
N    number of observations in the node
ImpMeasure impurity measure of the node
Yhat the predicted value
Prob the probability of each level of the categorical criterion
(column names of Prob matrix will be used as the data frame variable names.)

Examples

Xc <- data.frame(square$c1,square$c2)
res1 <- DecTree( square$Class4, Xc, maxdepth=4, print=0 )
print_leaf_dt( res1$node, title="square" )


[Package lazy.tree version 0.1.6 ]