I am currently working with extra-trees in the sklearn package but was wondering how the feature importance (function) is calculating the importances of the features. Is it also calculated by the mean decrease Gini or is there another way? Could not find anything in the source code on GitHub.
$\begingroup$
$\endgroup$
2
-
$\begingroup$ This sounds like it is just a question about the sklearn function. If so, it would be off topic here; you should read the documentation or contact the tech support somehow. If you have a machine learning question about the measurement of importance in extra trees, please edit to clarify. $\endgroup$– gung - Reinstate MonicaCommented Aug 18, 2017 at 14:51
-
$\begingroup$ Wow, the the "off-topic" crusaders are quick on the trigger. $\endgroup$– TfovidCommented Oct 18, 2022 at 9:16
Add a comment
|
1 Answer
$\begingroup$
$\endgroup$
Extra tree classifier in sklearn used Gini Importance for calculating the feature importance. You can check the following link: http://scikit-learn.org/stable/modules/generated/sklearn.tree.ExtraTreeClassifier.html