Skip to content

Commit

Permalink
fix python
Browse files Browse the repository at this point in the history
  • Loading branch information
ShvetsKS committed Sep 3, 2021
1 parent 14ae222 commit 137183e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/guide-python/feature_weights.py
Expand Up @@ -31,7 +31,8 @@ def main(args):
feature_map = bst.get_fscore()
# feature zero has 0 weight
assert feature_map.get('f0', None) is None
assert max(feature_map.values()) == feature_map.get('f9')
#max weight is depending on rng call during colsample by node
# assert max(feature_map.values()) == feature_map.get('f9')

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

0 comments on commit 137183e

Please sign in to comment.