8000 Testing string and numerical targets for multioutput classifiers with… · scikit-learn/scikit-learn@9a482b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a482b6

Browse files
committed
Testing string and numerical targets for multioutput classifiers without LabelBinarizer.
1 parent b1826cf commit 9a482b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/utils/estimator_checks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,8 +1305,7 @@ def check_classifier_multioutput(name, estimator_orig):
13051305

13061306
estimator_orig = clone(estimator_orig)
13071307
X, y = make_multilabel_classification(random_state=42)
1308-
if not (hasattr(estimator_orig, '_label_binarizer') or not
1309-
hasattr(estimator_orig, 'label_binarizer_')):
1308+
if name not in ['OneVsRestClassifier', 'RidgeClassifierCV']:
13101309
estimator_orig.fit(X, y.astype(str)).predict(X)
13111310
estimator_orig.fit(X, y).predict(X)
13121311

0 commit comments

Comments
 (0)
0