From ea99b53d8eeafcd0f127060601c521cfb52f5f92 Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Mon, 8 Oct 2018 01:52:25 -0700 Subject: [PATCH] Document behavior of get_fscore() for zero-importance features (#3763) --- python-package/xgboost/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-package/xgboost/core.py b/python-package/xgboost/core.py index 1e955d66c..5494b49a9 100644 --- a/python-package/xgboost/core.py +++ b/python-package/xgboost/core.py @@ -1395,6 +1395,11 @@ class Booster(object): 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)