xgbfir
xgbfir copied to clipboard
xgboost 0.7 support issue, TypeError: 'str' object is not callable
Hi,
apparently xgbfir does not support the recently released of xgboost 0.7:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-19-7de868c73240> in <module>()
8
9 # saving to file with proper feature names
---> 10 xgbfir.saveXgbFI(xgb_rmodel, feature_names=X.columns, OutputXlsxFile='FI.xlsx')
11
12
~/anaconda3/lib/python3.6/site-packages/xgbfir/main.py in saveXgbFI(booster, feature_names, OutputXlsxFile, MaxTrees, MaxInteractionDepth, MaxDeepening, TopK, MaxHistograms, SortBy)
589 if not 'get_dump' in dir(booster):
590 if 'booster' in dir(booster):
--> 591 booster = booster.booster()
592 else:
593 return -20
TypeError: 'str' object is not callable
the issue is solved with a new update.