We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d09bce commit 44da1d7Copy full SHA for 44da1d7
powershap/shap_wrappers/shap_explainer.py
@@ -171,8 +171,7 @@ def explain(
171
Shap_values = np.abs(Shap_values)
172
173
if len(np.shape(Shap_values)) > 2:
174
- # Shap_values = np.max(Shap_values, axis=0)
175
- Shap_values = np.max(Shap_values, axis=0).T
+ Shap_values = np.max(Shap_values, axis=-1)
176
177
# TODO: consider to convert to even float16?
178
Shap_values = np.mean(Shap_values, axis=0).astype("float32")
0 commit comments