Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DrShushen committed Dec 2, 2024
1 parent 575a0ad commit 1ad7858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autoprognosis/plugins/explainers/plugin_kernel_shap.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def explain(self, X: pd.DataFrame) -> np.ndarray:
X = pd.DataFrame(X, columns=self.feature_names)
importance = np.asarray(self.explainer.shap_values(X))
if self.task_type == "classification":
importance = importance[:,:,1]
importance = importance[:, :, 1]

return importance

Expand Down

0 comments on commit 1ad7858

Please sign in to comment.