print_leaf_dt {lazy.tree} | R Documentation |
Print the Leaf Node Information
print_leaf_dt(obj, title = "", dump = 0)
obj |
The output of DecTree or list of nodes. |
title |
The title string |
dump |
= 1 to output result |
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.)
Xc <- data.frame(square$c1,square$c2)
res1 <- DecTree( square$Class4, Xc, maxdepth=4, print=0 )
print_leaf_dt( res1$node, title="square" )