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