To interactively grow a classification tree, use the Classification Learner app. For
greater flexibility, grow a classification tree using
the command-line interface. After growing a classification tree, predict
labels by passing the tree and new predictor data to
|Classification Learner||Train models to classify data using supervised machine learning|
Learn how to train classification trees.
Train a classification tree using sample data.
Predict class labels or responses using trained classification and regression trees.
Tune trees by setting name-value pairs in
Decision trees predict responses to data based on a sequence of decisions.
When growing a classification tree, finding an optimal binary split for a categorical predictor with many levels is significantly more computationally challenging than finding a split for a continuous predictor. Several heuristic algorithms for this task are available.