Skip to content

Commit cc14bea

Browse files
author
Guillaume Lemaitre
committed
Make crippy test
1 parent 29a959b commit cc14bea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

imblearn/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,4 +300,7 @@ def fit(self, X, y):
300300
type_of_target(y) == 'multiclass'):
301301
warnings.warn('The target type should be binary or multiclass.')
302302

303+
if np.unique(X).size == 1:
304+
warnings.warn('Hello')
305+
303306
return self

0 commit comments

Comments
 (0)