Skip to content

Commit 4cb9533

Browse files
author
Guillaume Lemaitre
committed
Solve issue #150
1 parent 8dd9302 commit 4cb9533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imblearn/under_sampling/edited_nearest_neighbours.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def _sample(self, X, y):
348348
self.logger.debug('Current ENN stats: %s', stats_enn)
349349
# Get the number of samples in the non-minority classes
350350
count_non_min = np.array([val for val, key
351-
in zip(stats_enn.itervalues(),
352-
stats_enn.iterkeys())
351+
in zip(stats_enn.values(),
352+
stats_enn.keys())
353353
if key != self.min_c_])
354354
self.logger.debug('Number of samples in the non-majority'
355355
' classes: %s', count_non_min)

0 commit comments

Comments
 (0)