Skip to content

Commit e97ea2f

Browse files
author
Guillaume Lemaitre
committed
Correct the error in ADASYN
1 parent da7ec38 commit e97ea2f

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

imblearn/over_sampling/adasyn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ def sample(self, X, y):
167167
super(ADASYN, self).sample(X, y)
168168

169169
# Keep the samples from the majority class
170-
X_resampled = X[y == self.maj_c_]
171-
y_resampled = y[y == self.maj_c_]
170+
X_resampled = X.copy()
171+
y_resampled = y.copy()
172172

173173
# Define the number of sample to create
174174
# We handle only two classes problem for the moment.
78.1 KB
Binary file not shown.
78.1 KB
Binary file not shown.
3.91 KB
Binary file not shown.
3.91 KB
Binary file not shown.

0 commit comments

Comments
 (0)