Skip to content

Commit

Permalink
Fix broken classes attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
omerferhatt authored Dec 4, 2023
1 parent 3d6fb29 commit 217f469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sliceguard/sliceguard.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def report(
df["sg_y_pred"] = self._generated_y_pred[selected_dataframe_rows]

if hasattr(self, "_generated_y_probs") and hasattr(self, "classes"):
for class_idx, label in enumerate(self._classes):
for class_idx, label in enumerate(self.classes):
df[f"sg_p_{label}"] = self._generated_y_probs[:, class_idx].tolist()

spotlight_issue_list = np.array(data_issues)[data_issue_order].tolist()
Expand Down

0 comments on commit 217f469

Please sign in to comment.