Skip to content

Commit

Permalink
Document behavior of get_fscore() for zero-importance features (dmlc#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 authored Oct 8, 2018
1 parent 10cd7c8 commit ea99b53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python-package/xgboost/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1395,6 +1395,11 @@ def get_fscore(self, fmap=''):
learner (`booster=gbtree`). It is not defined for other base learner types, such
as linear learners (`booster=gblinear`).
.. note:: Zero-importance features will not be included
Keep in mind that this function does not include zero-importance feature, i.e.
those features that have not been used in any split conditions.
Parameters
----------
fmap: str (optional)
Expand Down

0 comments on commit ea99b53

Please sign in to comment.