xgbfir icon indicating copy to clipboard operation
xgbfir copied to clipboard

xgboost 0.7 support issue, TypeError: 'str' object is not callable

Open unnir opened this issue 7 years ago • 1 comments

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

unnir avatar Apr 09 '18 12:04 unnir

the issue is solved with a new update.

unnir avatar Aug 08 '18 11:08 unnir