Skip to content

Commit

Permalink
Removes prefix from positive label as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludvig committed Aug 24, 2024
1 parent c225717 commit 154ebf1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generalize/dataset/subset_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def remove_prefixed_index(s):
# Get updated positive label
new_positive_label = None
if positive_label is not None:
positive_label = remove_prefixed_index(positive_label)
if num_new_labels != 2:
raise ValueError(
(
Expand Down

0 comments on commit 154ebf1

Please sign in to comment.