[MRG] FIX OvR with constant label for non-predict methods

bug mentioned on ML
If SVC, why not LogisticRegression?


On 24 June 2014 09:37, Arnaud Joly <notifications@github.com> wrote:

>  In sklearn/tests/test_multiclass.py:
>
> > @@ -63,10 +63,23 @@ def test_ovr_always_present():
> >      X[:5, :] = 0
> >      y = [[int(i >= 5), 2, 3] for i in range(10)]
> >      with warnings.catch_warnings(record=True):
> > -        ovr = OneVsRestClassifier(DecisionTreeClassifier())
> > +        ovr = OneVsRestClassifier(LogisticRegression())
>
> svc?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/scikit-learn/scikit-learn/pull/3308/files#r14128965>.
>