-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any plans for supporting gradient boosted trees from sklearn #232
Comments
I don't have plans right now. It would require exporting the trees in a format similar to how it is done for sklearn's random forest. But I have not looked at the GBM implementation to know if it would be easy. @jmschrei you know if this would be easy or hard? |
I have been investigating some more and it seems like it could work with some minimal changes. I am not very familiar with exactly how the SHAP values so it is possible that this won't work for certain edge cases. In
And in
From my testing, I think it works as the sum of the SHAP values and the expected value is equal to the prediction probability. If this is useful, I can put together a pull request but will need some help with testing. |
Ah right I forget we already the regressor version now and you just need the classifier version. What you added looks good, so please make a PR. The only change I see right now is that |
Now supported |
Hi,
Thanks for the great package !
It is possible to build gradient boosted trees using the sklearn library in much the same way as one would using the xgboost library.
However it is not currently supported in the
TreeExplainer
class, are there any plans to support this model type ?I've tried making some changes to support it but it does not seem straight forward as support xgboost.
The text was updated successfully, but these errors were encountered: