I am struggling with a problem that (I think) would need to calculate shapley values for samples rather than features. For this, I end up in your blog post about Naïve Shapley method calculation (great resource!).
However, I am not quite sure how to implement this:
I have a pool of samples from s1 to s100 that I want to classify between two different categories A and B.
However, in this problem I cannot perform predictions individually for each sample but in groups of 10 and every prediction returns the predicted label and the confidence for each label. Something like:
I am struggling with a problem that (I think) would need to calculate shapley values for samples rather than features. For this, I end up in your blog post about Naïve Shapley method calculation (great resource!).
However, I am not quite sure how to implement this:
I have a pool of samples from
s1
tos100
that I want to classify between two different categories A and B. However, in this problem I cannot perform predictions individually for each sample but in groups of 10 and every prediction returns the predicted label and the confidence for each label. Something like:Is there any way to calculate shapley values from this combinations?
I also make a similar question in stackoverflow in case you want to answer there. Thanks!