Skip to content

Add "auto" option as default solver to GLMs #33401

Closed

Description

@lorentzenchr

Currently, our GLMS like LogisticRegression, PoissonRegressor and others have default solver="lbfgs". Unfortunately, this solver cannot solve L1-penalized objectives. Therefore, LogisticRegression(l1_ratio=1) errors.

I propose to change the default solver to "auto" with the meaning:

  1. The solver chosen may change from version to version. (But this should happen rarely.)
  2. The solver chosen is fit for the purpose no matter which panalty is chosen.
  3. Start with

Linked to / duplication of #5736

Activity

  1. added
    Needs Triage
    on Feb 24, 2026
  2. changed the title [-]Add "auto" option as default to GLM solvers[/-] [+]Add "auto" option as default solver to GLMs[/+] on Feb 27, 2026
  3. ogrisel commented on Mar 9, 2026

    @ogrisel
    Member

    I think this is a good idea (and a UX improvement), but maybe we should wait to find the time to review and merge #33160 to not change the behavior of this default if we jusdge that newton-cd is more robust/faster than SAGA in an empirical evaluation that compares both on a few benchmark dataset?

    Or maybe it's fine to change the behavior of such an "auto" parameter without going through backward as the contract is fundamentally valid if we do (find a reasonably robust solver that is compatible with the other hparams values).

  4. removed
    Needs Triage
    on Mar 9, 2026
  5. ArjunCodess commented on Sep 20, 2026

    @ArjunCodess

    hi, i'd like to work on this. ogrisel likes it but said wait for review/merge of #33160 first. i'd actually default glm solver="auto" so l1 does not explode on lbfgs. do you still want this, and should i wait on 33160?

  6. self-assigned this
    on Sep 20, 2026
  7. lorentzenchr commented on Sep 20, 2026

    @lorentzenchr
    MemberAuthor

    @ArjunCodess Thanks for your interest. I should have made clearer that I will take care of this issue. Currently, I am waiting for #34681 and #32042 to be merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions