FUNCTION REFERENCE
ClassificationTree
Decision tree classification model returned by fitctree.
Decision tree classification model returned by fitctree.
Syntax
mdl = fitctree(X, Y)Stores binary split nodes, class probabilities and predictor metadata. Evaluate with predict, resubLoss, loss, crossval and predictorImportance.
Example
mdl = fitctree([0; 1; 2; 3], [1; 1; 2; 2]); class(mdl) % 'ClassificationTree'Differences from MATLAB: Numeric predictors only; surrogate splits and prune are not supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.