[scikit-learn] question about class_weights in LogisticRegression

Johnson, Jeremiah Jeremiah.Johnson at unh.edu
Tue Aug 1 12:03:01 EDT 2017

Hello all,

I'm looking for confirmation on an implementation detail that is somewhere in liblinear, but I haven't found documentation for yet. When the class_weights='balanced' parameter is set in LogisticRegression, then the regularisation parameter for an observation from class I is class_weight[I] * C, where C is the usual regularization parameter - is this correct?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170801/404a5898/attachment.html>

More information about the scikit-learn mailing list