FUNCTION REFERENCE
predictorImportance
Estimate predictor importance from tree impurity reductions.
Estimate predictor importance from tree impurity reductions.
Syntax
importance = predictorImportance(mdl)Supports fitctree, fitrtree and classification or regression tree ensembles. Returns mean Gini reduction per branch node, averaged over ensemble trees with learner weights. Regression booster trees use squared-error reduction.
Example
m=fitctree([0;1;4;5],[1;1;2;2],'MinParentSize',2); predictorImportance(m)Example
m=fitrtree((0:7)',[0;0;1;1;4;4;5;5],'MinParentSize',2); predictorImportance(m)Differences from MATLAB: Surrogate and permutation importance are unsupported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.