On Wed, Mar 21, 2012 at 5:57 PM, Olivier Grisel
<olivier.gri...@ensta.org> wrote:

> If there are only two classes, 0 or -1 is treated as negative and 1 is
> treated as positive.

To complement Olivier's answer, by convention in scikit-learn, the
negative label is in self.classes_[0]
and the positive one is in self.classes_[1]. Methods like
decision_function or predict_proba that give you a score for the
membership of the instances to each class use this order too.

> In the multi-class case, coef_ seems to have shape [n_classes,
> n_features] (it's a one vs the rest multiclass model).
>
> I think the docstring is wrong. Anybody can confirm?

Indeed...

Mathieu

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to