Skip to content

Commit

Permalink
shap_interaction_values
Browse files Browse the repository at this point in the history
  • Loading branch information
oegedijk committed Mar 11, 2024
1 parent 01bce04 commit 17a3ee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions explainerdashboard/explainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3101,11 +3101,11 @@ def shap_interaction_values(self, pos_label=None):
if (
isinstance(self._shap_interaction_values, np.ndarray)
and len(self._shap_interaction_values.shape) == 4
and self._shap_interaciton_values.shape[3] > 2
and self._shap_interaction_values.shape[3] > 2
):
self._shap_interaciton_values = [
self._shap_interaction_values = [
self._shap_interaction_values[:, :, :, i]
for i in range(self._shap_interaciton_values.shape)
for i in range(self._shap_interaction_values.shape)
]
assert len(self._shap_interaction_values) == len(self.labels), (
f"len(self.label)={len(self.labels)}, but "
Expand Down

0 comments on commit 17a3ee6

Please sign in to comment.