Skip to content

Commit 04f8d30

Browse files
author
Guillaume Lemaitre
committed
PEP8
Conflicts: imblearn/datasets/__init__.py imblearn/datasets/imbalance.py imblearn/datasets/tests/test_make_imbalance.py
1 parent ba5c1d7 commit 04f8d30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imblearn/under_sampling/nearmiss.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ def _sample(self, X, y):
196196
# Assign the parameter of the element of this class
197197
# Check that the version asked is implemented
198198
if self.version not in [1, 2, 3]:
199-
raise ValueError("Parameter 'version' must be 1, 2 or 3, "
200-
"got {0}".format(self.version))
199+
raise ValueError('Parameter `version` must be 1, 2 or 3, got'
200+
' {}'.format(self.version))
201201

202202
# Start with the minority class
203203
X_min = X[y == self.min_c_]

0 commit comments

Comments
 (0)