-
Notifications
You must be signed in to change notification settings - Fork 7
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
ShapML for Classification. #14
Comments
Hi I managed to do this using an AMLPipeline: could you help me with the graph of feature importance? I am stuck with the Dataframes.by which should be now groupby!
|
I'm sorry about the bug and delayed response, but I'm afraid that I cannot support this repo right now--even though I'd really like to. In the meantime, I've given access to a collaborator and will likely transfer ownership to JuliaAI or the Alan Turing Institute soon. To your specific questions, ShapML is not set up to work with classification. It wouldn't be all that difficult to add, but it's not something that I could take on right now. |
No worry, I made it work with classification, see above example, and also made the graph (I will post it in a few hours). Thanks best regards |
The graph:
|
@michele2198 would you mind posting full code for this? I am also trying to implement ShapML for multi class classification. |
Sure, here is all the code:
|
Thanks for this. Ours is a multi class classification problem, so I will have to have a little play around and see if I can adapt it to that. Can you think of any reason why that shouldn't work? |
no, consider that shapley is not designed for binary class, but for regression. So I don't see reason to not work with multiclass my code is designed to predict the "outcome" column of the csv file which is 0 or 1 |
Hi - is there a method to get shapley values for classification problems? The code I tried is below:
and I am getting the following error:
The text was updated successfully, but these errors were encountered: