Skip to content

Commit dfc79f0

Browse files
committed
min(unique(y)) === min(y)
1 parent 8625b30 commit dfc79f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ot/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def label_normalization(y, start=0, nx=None):
409409
"""
410410
if nx is None:
411411
nx = get_backend(y)
412-
diff = nx.min(nx.unique(y)) - start
412+
diff = nx.min(y) - start
413413
return y if diff == 0 else (y - diff)
414414

415415

0 commit comments

Comments
 (0)