You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we should warn the user when liblinear is used (in LinearSVC/R or LogisticRegression) and fit_intercept is used, if they do not explicitly set intercept_scaling. This is to improve awareness of liblinear's failure to regularise the intercept.
I would propose:
Set the default intercept_scaling to 'warn'
Raise a UserWarning if fit_intercept and intercept_scaling == 'warn'
@jnothman could you please tell me if the change on LogisticRegression as I've done in PR #11763 is what you want? Then I can modify the other classes as well.
Another question: should the docstring of those classes be modified?
Activity
adrinjalali commentedon Aug 6, 2018
@jnothman could you please tell me if the change on
LogisticRegressionas I've done in PR #11763 is what you want? Then I can modify the other classes as well.Another question: should the docstring of those classes be modified?
adrinjalali commentedon May 28, 2020
we need to decide whether we want to warn or not. The PR addressing this didn't get merged due to concerns regarding too many warnings.