Skip to content

Commit 36a0aa3

Browse files
committed
iter
1 parent f2a572f commit 36a0aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imblearn/utils/_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def check_sampling_strategy(
586586
" instead.".format(SAMPLING_KIND, sampling_type)
587587
)
588588

589-
if hasattr(y, "__array__"):
589+
if hasattr(classes_counts, "__array__"):
590590
warnings.warn(
591591
f"Passing that array of target `y` is deprecated in 0.7 and will "
592592
f"raise an error from 0.9. Instead, pass `y` to "

0 commit comments

Comments
 (0)