-
Notifications
You must be signed in to change notification settings - Fork 85
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
How can I use MimicExplainer with Voting Classifier? [Question] #544
Comments
hi @RNakamura90 , sorry about the trouble you are having. I am guessing that the issue is in this class:
The error:
Suggests to me that the fited_soft_voting is getting indexed into when it can't be:
Do you see any error when you pass just fited_soft_voting instead of fited_soft_voting[-1][1]?
and validate that this predict call is passing? We are just calling the predict and predict_proba methods in the explainer. |
Hello @imatiach-msft, thanks for the answer.
A step prior to the construction of Pipelines for each algorithm:
|
Hi @RNakamura90 ,
This is very unexpected to me. You should be able to call predict or predict_proba on the X_train dataset using the fitted estimator. Please see the guide: Can you print the type of the |
Also, what is the stack trace for this error:
|
I see you are passing variable_transformer three times. I wonder if it needs to be copied. It would be great to see the full stack trace, as I think that would determine where the issue is coming from. If you are not able to call predict/predict_proba on the model, then it won't work with the explainers. |
I'm building a Voting Ensemble Classifier model with transformation pipelines.
But when I try to use the MimicExplainer function with an LGBM surrogate model, I get the following error:
The text was updated successfully, but these errors were encountered: