Skip to content
Prev Previous commit
Next Next commit
Fix PEP issues
  • Loading branch information
ThomasKluiters committed May 5, 2019
commit e17ba76ad9c39a96b34c8ec80cedebe3b156ebc7
10 changes: 5 additions & 5 deletions imblearn/over_sampling/_smote.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,10 +1214,10 @@ class SMOTEN(SMOTE):
def __init__(self, sampling_strategy='auto',
random_state=None, k_neighbors=5, n_jobs=1):
super(SMOTEN, self).__init__(sampling_strategy=sampling_strategy,
random_state=random_state,
k_neighbors=k_neighbors,
ratio=None,
n_jobs=n_jobs)
random_state=random_state,
k_neighbors=k_neighbors,
ratio=None,
n_jobs=n_jobs)

@staticmethod
def _check_X_y(X, y):
Expand Down Expand Up @@ -1261,7 +1261,7 @@ def _generate_sample(self, X, nn_data, nn_num, row, col, step):
"""
rng = check_random_state(self.random_state)
sample = super(SMOTEN, self)._generate_sample(X, nn_data, nn_num,
row, col, step)
row, col, step)
# To avoid conversion and since there is only few samples used, we
# convert those samples to dense array.
sample = (sample.toarray().squeeze()
Expand Down