You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the paper, I expect that shap_values.base_values[0,0] should be equivalent to model(X).mean(). But the I found that this is true only if X.shape[0]<=100. When the number of samples in X is greater than 100, the reference value becomes weird and I don't know how it is calculated.
I am confounded by this phenomenon, am I doing it wrong? I really appreciate it if anyone can help me with this issue!
The text was updated successfully, but these errors were encountered:
I tried a simple model
model
with input datax
and background dataX
. The exact SHAP is implemented asFrom the paper, I expect that
shap_values.base_values[0,0]
should be equivalent tomodel(X).mean()
. But the I found that this is true only ifX.shape[0]<=100
. When the number of samples inX
is greater than 100, the reference value becomes weird and I don't know how it is calculated.I am confounded by this phenomenon, am I doing it wrong? I really appreciate it if anyone can help me with this issue!
The text was updated successfully, but these errors were encountered: