Skip to content

Commit 85acb8b

Browse files
author
Guillaume Lemaitre
committed
Avoid to recopy the data in RENN
1 parent 28bc2db commit 85acb8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imblearn/under_sampling/edited_nearest_neighbours.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def _sample(self, X, y):
317317
if self.max_iter < 2:
318318
raise ValueError('max_iter must be greater than 1.')
319319

320-
X_, y_ = X.copy(), y.copy()
320+
X_, y_ = X, y
321321

322322
if self.return_indices:
323323
idx_under = np.arange(X.shape[0], dtype=int)

0 commit comments

Comments
 (0)