compact
Reduce size of classification tree model
Syntax
Description
returns a ctree
= compact(tree
)CompactClassificationTree
version of the trained
classification tree model tree
.
You can predict classifications using the CompactClassificationTree
model
object ctree
in the same way as when you use tree
.
However, because ctree
does not contain training data, you cannot
perform certain tasks, such as cross-validation.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2011a
See Also
CompactClassificationTree
| ClassificationTree
| fitctree
| predict