8000 DOC: feature importances · seckcoder/scikit-learn@7130c99 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7130c99

Browse files
committed
DOC: feature importances
1 parent 3963311 commit 7130c99

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

sklearn/tree/tree.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,11 @@ def predict(self, X):
432432

433433
@property
434434
def feature_importances_(self):
435-
"""Return the feature importances (the higher, the more important the
436-
feature).
435+
"""Return the feature importances.
436+
437+
The importance of a feature is computed as the
438+
(normalized) total reduction of the criterion brought by that
439+
feature. It is also known as the Gini importance [4]_.
437440
438441
Returns
439442
-------
@@ -506,10 +509,9 @@ class DecisionTreeClassifier(BaseDecisionTree, ClassifierMixin):
506509
output (for multi-output problems).
507510
508511
`feature_importances_` : array of shape = [n_features]
509-
The feature importances
510-
(the higher, the more important the feature).
512+
The feature importances. The higher, the more important the feature.
511513
The importance of a feature is computed as the
512-
(normalized) total reduction of error brought by that
514+
(normalized) total reduction of the criterion brought by that
513515
feature. It 8C9E is also known as the Gini importance [4]_.
514516
515517
See also
@@ -692,10 +694,9 @@ class DecisionTreeRegressor(BaseDecisionTree, RegressorMixin):
692694
The underlying Tree object.
693695
694696
`feature_importances_` : array of shape = [n_features]
695-
The feature importances
696-
(the higher, the more important the feature).
697+
The feature importances. The higher, the more important the feature.
697698
The importance of a feature is computed as the
698-
(normalized) total reduction of error brought by that
699+
(normalized) total reduction of the criterion brought by that
699700
feature. It is also known as the Gini importance [4]_.
700701
701702
See also

0 commit comments

Comments
 (0)
0