interpret-community
interpret-community copied to clipboard
Issue with XGBoost + binary classification when using TreeExplainer
Describe the bug User reported issue. XGBoost + binary classification when using TreeExplainer fails due to bad shape.
SHAP TreeExplainer returns the wrong format for feature contribution values (lightgbm had similar issue but it was already fixed with PR https://github.com/slundberg/shap/pull/690), we have a disabled test here:
https://github.com/interpretml/interpret-community/blob/master/test/test_explain_model.py#L362
The fix requires a PR to SHAP
To Reproduce Steps to reproduce the behavior:
- Run TreeExplainer on XGBoost binary classifier
- See error
Expected behavior Explanation should be returned
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): Any
Smartphone (please complete the following information): Any
Additional context Add any other context about the problem here.
there was a workaround merged here after a user complaint: https://github.com/interpretml/interpret-community/pull/235 will keep this ticket to track the longer-term fix