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
{{ message }}
Repository navigation
Problem with ridgeCV: centering the design matrix messes the solution when n < p #1807
Activity
mblondel commentedon Mar 25, 2013
Thanks for the report! Any idea how to fix this?
agramfort commentedon Jul 25, 2013
i looked into it:
https://gist.github.com/agramfort/6078557
you'll see that if X is rank deficient even your code @bthirion fails to find the good alpha.
I think both implementations match. So the questions is how to fix these 10 lines of code
to it works with a rank deficient X....
bthirion commentedon Jul 25, 2013
On 25/07/2013 14:53, Alexandre Gramfort wrote:
B
bthirion commentedon Jan 3, 2016
Getting back to that one: see https://gist.github.com/bthirion/834b78c274e7f411665d
What sklearn's gcv computes is actually the mse, BUT in a setting (fit_intercept=False, pre-centered data), that gives trivial and misleading results as soon as n_features >= n_samples - 1
My suggestion is to change this to make the gcv results equivalent to a setting where fit_intercept=True.
Any opinion ?
agramfort commentedon Jan 3, 2016
jnothman commentedon Jun 14, 2017
Fixed in #6178, afaik