Logistic regression class in sklearn comes with L1 and L2 regularization. How can I turn off regularization to get the \"raw\" logistic fit such as in glmfit in Matlab? I think
I got the same question and tried out the answer in addition to the other answers:
If set C to a large value does not work for you, also set penalty='l1'.
penalty='l1'