The LogisticRegression class holds a coef_ attribute which is said to hold
the coefficients in the decision function.
High (positive) coefficients mean more correlation with the class, while
low (negative) ones mean an opposite correlation with the class.
- Assuming that I have two class in that target variable, to which class
the coefficients match? Is it the first class, i.e., y[0]?
- Why is the shape of the coefficients  [n_classes-1, n_features]? if the
top coefficients are most correlated with the first class, then the bottom
ones are most correlated with the second class?

I wasn't able to find any insightful information in LIBLINEAR about the
structure of the coefficients and why are they shaped this way.

Thanks!
------------------------------------------------------------------------------
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