Pruning level, specified as a vector of nonnegative integers in ascending
order or "all"
.
If you specify a vector, then all elements must be at least
0
and at most max(tree.PruneList)
.
0
indicates the full, unpruned tree, and
max(tree.PruneList)
indicates the completely pruned
tree (in other words, just the root node).
If you specify "all"
, then
resubPredict
operates on all subtrees (in other
words, the entire pruning sequence). This specification is equivalent to
using 0:max(tree.PruneList)
.
resubPredict
prunes tree
to each
level specified by subtrees
, and then estimates the
corresponding output arguments. The size of subtrees
determines the size of some output arguments.
For the function to invoke subtrees
, the properties
PruneList
and PruneAlpha
of
tree
must be nonempty. In other words, grow
tree
by setting Prune="on"
when
you use fitrtree
, or by pruning
tree
using prune
.
Data Types: single
| double
| char
| string