8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 076442c commit cd14723Copy full SHA for cd14723
sklearn/utils/multiclass.py
@@ -150,7 +150,7 @@ def is_multilabel(y):
150
warnings.simplefilter("error", np.VisibleDeprecationWarning)
151
try:
152
y = np.asarray(y)
153
- except np.VisibleDeprecationWarning:
+ except (np.VisibleDeprecationWarning, ValueError):
154
# dtype=object should be provided explicitly for ragged arrays,
155
# see NEP 34
156
y = np.array(y, dtype=object)
@@ -292,7 +292,7 @@ def type_of_target(y, input_name=""):
292
293
294
295
296
297
298
y = np.asarray(y, dtype=object)
0 commit comments