Skip to content

Commit d291eb0

Browse files
author
Guillaume Lemaitre
committed
Try something else
1 parent cdeaccd commit d291eb0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

imblearn/base.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ def fit(self, X, y):
260260

261261
super(BaseBinarySampler, self).fit(X, y)
262262

263-
if np.size(np.unique(y)) == 1:
264-
warnings.warn('Hello')
265-
266263
# Check that the target type is binary
267264
if not type_of_target(y) == 'binary':
268265
warnings.warn('The target type should be binary.')
@@ -298,9 +295,6 @@ def fit(self, X, y):
298295

299296
super(BaseMulticlassSampler, self).fit(X, y)
300297

301-
if np.size(np.unique(y)) == 1:
302-
warnings.warn('Hello')
303-
304298
# Check that the target type is either binary or multiclass
305299
if not (type_of_target(y) == 'binary' or
306300
type_of_target(y) == 'multiclass'):

0 commit comments

Comments
 (0)