Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-czyz committed May 27, 2024
1 parent e5df39b commit 4e68c44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labelshift/datasets/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def split_dataset(

if set(np.unique(dataset.target)) != set(range(n_labels)):
raise ValueError(
f"Labels must be 0-indexed integers: {dataset.target_names} != "
f"Labels must be 0-indexed integers: {dataset.target} != "
f"{set(range(n_labels))}."
)
if {
Expand Down

0 comments on commit 4e68c44

Please sign in to comment.