Fix estimators_checks.test_non_meta_estimators
Partially reverts
@@ -1108,7 +1108,9 @@ def check_classifiers_train(name, Classifier):
assert_equal(decision.shape, (n_samples,))
dec_pred = (decision.ravel() > 0).astype(np.int)
assert_array_equal(dec_pred, y_pred)
- if n_classes == 3:
+ if (n_classes == 3 and
+ # 1on1 of LibSVM works differently
+ not isinstance(classifier, BaseLibSVM)):
assert_equal(decision.shape, (n_samples, n_classes))
assert_array_equal(np.argmax(decision, axis=1), y_pred)
