[scikit-learn] Using logistic regression with count proportions data

Raphael C drraph at gmail.com
Mon Oct 10 06:55:52 EDT 2016


I am trying to perform regression where my dependent variable is
constrained to be between 0 and 1. This constraint comes from the fact
that it represents a count proportion. That is counts in some category
divided by a total count.

In the literature it seems that one common way to tackle this is to
use logistic regression. However, it appears that in scikit learn
logistic regression is only available as a classifier
(http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html
) . Is that right?

Is there another way to perform regression using scikit learn where
the dependent variable is a count proportion?

Thanks for any help.

Raphael


More information about the scikit-learn mailing list