scikit-learn/scikit-learn

Investigate SAG/SAGA solver

Open

#23,180 opened on Apr 21, 2022

View on GitHub
 (9 comments) (0 reactions) (0 assignees)Python (27,020 forks)batch import
BugModeratehelp wantedmodule:linear_model

Repository metrics

Stars
 (66,084 stars)
PR merge metrics
 (Avg merge 10d) (90 merged PRs in 30d)

Description

Description

The newly introduced tight tests for Ridge in #22910 together with the random seed fixture in #22749 revealed some shortcomings of the sag and saga solver, some are already mentioned in #21305:

  1. It shows some random behavior even with fixed random seed.
  2. The tol needs to be set much smaller to receive comparable results with the other solvers of Ridge.
  3. Saga seems more stable on dense data X, and often needs much more iterations on sparse X.
  4. fit_intercept=True seems to converge slower.

Ideally, the cause for both issues can be identified and fixed.

Some links for context

https://github.com/scikit-learn/scikit-learn/issues/23014 https://github.com/scikit-learn/scikit-learn/pull/23017 https://github.com/scikit-learn/scikit-learn/pull/23026 https://github.com/scikit-learn/scikit-learn/pull/23152 #23177 #25198

Contributor guide