TeamHG-Memex / eli5

A library for debugging/inspecting machine learning classifiers and explaining their predictions
http://eli5.readthedocs.io
MIT License
2.75k stars 331 forks source link

Error: estimator XGBClassifier is not supported #412

Open yonlugoh opened 2 years ago

yonlugoh commented 2 years ago

This was unexpected as the documentation (maybe out-dated?) stated that XGBoost was supported for xgboost >= 0.6a2

> pip3 freeze
eli5==0.11.0
xgboost==1.5.0

Got the same Error: estimator XGBClassifier is not supported when trying to do eli5.show_weights() and eli5.explain_prediction() on the XGBoost model. May I know what is the latest release for xgboost that is supported? And perhaps the linked documentation could be updated to say that xgboost was supported for versions >= 0.6a2 and that release which is supported.

If there was a workaround to force eli5 to support xgboost, that would be great too, since the last resort would be to downgrade xgboost.