Skip to content

Commit d2f7e98

Browse files
author
Guillaume Lemaitre
committed
Remove unsued package
1 parent ae01164 commit d2f7e98

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

imblearn/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from sklearn.base import BaseEstimator
1515
from sklearn.utils import check_X_y
16-
from sklearn.utils import check_array
1716
from sklearn.externals import six
1817

1918
from six import string_types

imblearn/over_sampling/adasyn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def sample(self, X, y):
191191
self.nearest_neighbour.fit(X)
192192

193193
# Get the distance to the NN
194-
dist_nn, ind_nn = self.nearest_neighbour.kneighbors(X_min)
194+
_, ind_nn = self.nearest_neighbour.kneighbors(X_min)
195195

196196
# Compute the ratio of majority samples next to minority samples
197197
ratio_nn = np.sum(y[ind_nn[:, 1:]] == self.maj_c_, axis=1) / self.k

0 commit comments

Comments
 (0)