This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Class: classregtree

Compute embedded estimates of input feature importance

classregtree will be removed in a future release. See fitctree, fitrtree, ClassificationTree, or RegressionTree instead.


imp = varimportance(t)


imp = varimportance(t) computes estimates of input feature importance for tree t by summing changes in the risk due to splits on every feature. The returned vector imp has one element for each input variable in the data used to train this tree. At each node, the risk is estimated as node impurity if impurity was used to split nodes and node error otherwise. This risk is weighted by the node probability. Variable importance associated with this split is computed as the difference between the risk for the parent node and the total risk for the two children.

See Also

Was this topic helpful?