How to set sample weight in sklearn logistic regression?

Viewed 7454

I have a problem when I do the logistic regression in scikit learn python package.

When the data it has a different number of samples for 1 or 0, I want to do logistic regression with concerning sample weight. But, I have a few data, so I can't get the same number of samples for each.

1 Answers
Related