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
BUG RidgeCV with gcv_mode="svd" is unstable when alpha is very small #32459
As observed in this PR #27842 (comment) there is a bug with RidgeCVwith gcv_mode="svd". The problem seems to appear for very small alpha values (1e-14 or less). The other gcv_mode="eigen" works fine.
It's maybe related to this bug #26848 (comment) where alpha is not very small but fitting is done with large sample_weight, again gcv_mode="eigen" works fine but gcv_mode="svd" gives diverging coefficients and very poor score.
Ping @lorentzenchr@agramfort@josephsalmon@mathurinm in case any of you has some spare brain cycle to allocate to interesting numerical stability / linear algebra problems (see ideas explored in #32506 for a start).
changed the title [-]BUG RidgeCV with gcv_mode="svd" is unstable when alpha is very small[/-][+]BUG `RidgeCV` with `gcv_mode="svd"` is unstable when alpha is very small[/+]on Jan 13, 2026
Activity
antoinebaker commentedon Oct 15, 2025
A possible fix (using the full svd of X) is shown in the linked draft PR.
ogrisel commentedon Oct 24, 2025
Ping @lorentzenchr @agramfort @josephsalmon @mathurinm in case any of you has some spare brain cycle to allocate to interesting numerical stability / linear algebra problems (see ideas explored in #32506 for a start).
[-]BUG RidgeCV with gcv_mode="svd" is unstable when alpha is very small[/-][+]BUG `RidgeCV` with `gcv_mode="svd"` is unstable when alpha is very small[/+]