Skip to content

Commit

Permalink
"featue_map" typo changed to "feature_map" (#6540)
Browse files Browse the repository at this point in the history
  • Loading branch information
mburaksayici authored Dec 21, 2020
1 parent fbb980d commit 95cbfad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/guide-python/feature_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def main(args):
'colsample_bynode': 0.5},
dtrain, num_boost_round=10,
evals=[(dtrain, 'd')])
featue_map = bst.get_fscore()
feature_map = bst.get_fscore()
# feature zero has 0 weight
assert featue_map.get('f0', None) is None
assert max(featue_map.values()) == featue_map.get('f9')
assert feature_map.get('f0', None) is None
assert max(feature_map.values()) == feature_map.get('f9')

if args.plot:
xgboost.plot_importance(bst)
Expand Down

0 comments on commit 95cbfad

Please sign in to comment.