We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a572f commit 36a0aa3Copy full SHA for 36a0aa3
imblearn/utils/_validation.py
@@ -586,7 +586,7 @@ def check_sampling_strategy(
586
" instead.".format(SAMPLING_KIND, sampling_type)
587
)
588
589
- if hasattr(y, "__array__"):
+ if hasattr(classes_counts, "__array__"):
590
warnings.warn(
591
f"Passing that array of target `y` is deprecated in 0.7 and will "
592
f"raise an error from 0.9. Instead, pass `y` to "
0 commit comments