-
Notifications
You must be signed in to change notification settings - Fork 40
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
Catboost + categorical features broken inside ShapRFECV #147
Comments
Great find. Feel free to pick up this issue. |
CatBoost has its own ShapRFE: https://catboost.ai/docs/concepts/python-reference_catboost_select_features.html |
@Matgrb I agree, however we need to be aware that it will fail for users who don't know whether their algorithm supports |
If the model does not accept categorical, this the method will already fail when the model is being fitted, before getting the shap values. |
In that case, given that only tree-based models currently accept Categorial, and they require no background data to be passed, it indeed only makes sense to remove the model check there! I can submit a PR, but it's probably easier if you just push a quick commit removing the model check. |
I made a PR, once we merge it i will release a new version of probatus. |
It is now released in probatus 1.8.2 . Can you confirm if it works for you @oleg-savko ? |
Checked it, seems like version probatus==1.8.2 work fine now :) |
Its reference the same as bug: #138
But for catboost this part of code not work:
Because for catboost str return in another format and not detect:
So need very simple fix to correct catboost model detection.
The text was updated successfully, but these errors were encountered: