Document behavior of get_fscore() for zero-importance features (#3763)

This commit is contained in:
Philip Hyunsu Cho 2018-10-08 01:52:25 -07:00 committed by GitHub
parent 10cd7c8447
commit ea99b53d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1395,6 +1395,11 @@ class Booster(object):
learner (`booster=gbtree`). It is not defined for other base learner types, such learner (`booster=gbtree`). It is not defined for other base learner types, such
as linear learners (`booster=gblinear`). 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 Parameters
---------- ----------
fmap: str (optional) fmap: str (optional)