Skip to content

Commit 9ac2797

Browse files
author
Andrea Lorenzon
committed
removed non-binary exception
1 parent 8bbbd2e commit 9ac2797

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

imblearn/over_sampling/_rose.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def _make_samples(self,
107107

108108
def _fit_resample(self, X, y):
109109

110-
if type_of_target(y) != "binary":
111-
raise Exception("ROSE supports only binary outcome datasets.")
110+
# if type_of_target(y) != "binary":
111+
# raise Exception("ROSE supports only binary outcome datasets.")
112112

113113
X_resampled = np.empty((0, X.shape[1]), dtype=X.dtype)
114114
y_resampled = np.empty((0), dtype=X.dtype)

0 commit comments

Comments
 (0)