Skip to content

Commit

Permalink
fix shap interaction values iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
oegedijk committed Mar 11, 2024
1 parent 17a3ee6 commit 5813376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explainerdashboard/explainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3105,7 +3105,7 @@ def shap_interaction_values(self, pos_label=None):
):
self._shap_interaction_values = [
self._shap_interaction_values[:, :, :, i]
for i in range(self._shap_interaction_values.shape)
for i in range(self._shap_interaction_values.shape[3])
]
assert len(self._shap_interaction_values) == len(self.labels), (
f"len(self.label)={len(self.labels)}, but "
Expand Down

0 comments on commit 5813376

Please sign in to comment.