Documentation

Classification Trees

Binary decision trees for multiclass learning

To interactively grow a classification tree, use the Classification Learner app. For greater flexibility, grow a classification tree using fitctree in the command-line interface. After growing a classification tree, predict labels by passing the tree and new predictor data to predict.

Apps

Classification Learner Train models to classify data using supervised machine learning

Functions

fitctree Fit binary classification decision tree for multiclass classification
predict Predict classification
templateTree Create decision tree template
loss Classification error
view View tree
prune Produce sequence of subtrees by pruning
crossval Cross-validated decision tree
predictorImportance Estimates of predictor importance
compareHoldout Compare accuracies of two classification models using new data

Classes

ClassificationTree Binary decision tree for classification
CompactClassificationTree Compact classification tree
ClassificationPartitionedModel Cross-validated classification model

Was this topic helpful?