prune
Produce sequence of regression subtrees by pruning
Description
Examples
Input Arguments
Output Arguments
Tips
tree1 = prune(tree)
returns the decision treetree1
that is the full, unprunedtree
, but with optimal pruning information added. This is useful only if you createdtree
by pruning another tree, or by usingfitrtree
with pruning set"off"
. If you plan to prune a tree multiple times along the optimal pruning sequence, it is more efficient to create the optimal pruning sequence first.
Extended Capabilities
Version History
Introduced in R2011a