-
-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
[WIP] Ridge fit_intercept with sparse X (issue #1389) #1560
Conversation
What do you mean by "wide X"? |
@vene When solver="auto" (the default), the solver used is not the same when X is dense and when X is sparse so you don't get the exact same results. Can you try to set the solver explicitly? (e.g. sparse_cg, which despite the name handle dense arrays too) The unit tests are getting messy. It would be nice to break the tests into smaller units (not needed for this PR). |
@mblondel: it doesn't fix it, and furthermore the results are the same, it's not that. Does adding a column of ones change anything fundamental when the problem admits exact solutions? |
@mblondel should I close this and let you take over? 🙇 |
I won't be able to tackle this issue this week unfortunately :-/ |
@vene Can I try working on this, on a new branch, and send a separate PR if you do not mind? |
Of course, please do! On Mon, Aug 11, 2014 at 4:02 PM, Manoj Kumar notifications@github.com
|
fixed by #13995 from what I can tell |
At the moment partly ignores fit_intercept if X is sparse: It sets the intercept to the mean of
y
but doesn't take into account X, because_center_data
doesn't center sparse matrices.This PR fits a (penalized) intercept in the sparse case by using
add_dummy_feature
.TODO:
See #1389