8000 Logistic regression regularization penalization is applied to intercept · Issue #10626 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

Logistic regression regularization penalization is applied to intercept #10626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MMRohe opened this issue Feb 12, 2018 · 5 comments
Closed

Logistic regression regularization penalization is applied to intercept #10626

MMRohe opened this issue Feb 12, 2018 · 5 comments

Comments

@MMRohe
Copy link
MMRohe commented Feb 12, 2018

Description

The logistic regression penalization seem to be applied to both weights and intercept. While it is not really a bug per say, I think this behavior is really counter intuitive (and there is this post on stack overflow suggesting that this opinion is shared https://stats.stackexchange.com/questions/302986/how-avoid-regularizing-intercept-in-scikits-logisticregression)

It would be good to either correct it or give it as an option to pass through the class.

If there is no plan to correct it, I suggest to maybe change a little bit the documentation. The equation shows that only the weights are regularized which is misleading:
http://scikit-learn.org/stable/modules/linear_model.html#logistic-regression

@jnothman
Copy link
Member
jnothman commented Feb 12, 2018 via email

@avidale
Copy link
Contributor
avidale commented Jun 28, 2018

5 years have passed. Default solver is still liblinear, and no hint about penalyzing intercept in documentation.

@scikit-learn scikit-learn deleted a comment Jun 28, 2018
@agramfort
Copy link
Member

@avidale we always appreciate PR to help us improving the documentation. If you have some time it would be much appreciated.

@amueller
Copy link
Member

@avidale 5 years since what? also see #9997

@jnothman
Copy link
Member
jnothman commented Jun 29, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
0