Open taimoorhussain1259 opened 1 year ago
We will need a minimal reproducer to be able to check if this is a bug or a misusage.
Also seeing this in SMOTE, BorderlineSMOTE and ADASYN. 0.10 works fine, 0.11 breaks.
Repro:
from imblearn.over_sampling import BorderlineSMOTE
from sklearn.datasets import make_classification
X, y = make_classification(
n_classes=2,
class_sep=2,
weights=[0.1, 0.9],
n_informative=3,
n_redundant=1,
flip_y=0,
n_features=20,
n_clusters_per_class=1,
n_samples=1000,
random_state=10,
)
BorderlineSMOTE().fit_resample(
X,
y,
)
Throws IndexError: index 22117 is out of bounds for axis 0 with size 1000
Setting n_features=10,
fixes the issue.
Python 3.11.4, Numpy 1.24.4, Linux
Hello everyone,
I used this library and it worked very well. Due to some conflicts in conda, I had to remake an environment. I reinstalled imbalanced-learn==0.10 but i am facing this issue. Please guide me. Thanks.