You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SMOTENC fit_transform fails with Numpy error ValueError: zero-size array to reduction operation maximum which has no identity when getting to this line:
Describe the bug
SMOTENC fit_transform fails with Numpy error
ValueError: zero-size array to reduction operation maximum which has no identity
when getting to this line:imbalanced-learn/imblearn/over_sampling/_smote/base.py
Line 790 in 27bb6c7
Steps/Code to Reproduce
The reason is unclear, maybe it is a highly imbalanced dataset with binary target equal to 1 in 134/22763 samples.
Example:
Using SMOTE instead works without problem.
Expected Results
Dataset oversample
Actual Results
Versions
The text was updated successfully, but these errors were encountered: