Skip to content

ENH minimum norm solution for newton-cholesky solver in GLMs - #34339

Open
lorentzenchr wants to merge 23 commits into
scikit-learn:mainfrom
lorentzenchr:glm_newton_eigendecomp
Open

lorentzenchr wants to merge 23 commits into
scikit-learn:mainfrom
lorentzenchr:glm_newton_eigendecomp

Conversation

@lorentzenchr

Copy link
Copy Markdown
Member

Reference Issues/PRs

None

What does this implement/fix? Explain your changes.

This PR adds 2 steps to the "newton-cholesky" solver of LogisticRegression, PoissonRegressor and others:

  • Use an eigendecomposition of the Hessian if the linear solver fails (instead of always switching to lbfgs).
  • If the the above happens, try to recover the minimum L2-norm solution during the finalize step using the nullspace of X.

AI usage disclosure

I used AI assistance for:

  • Research and understanding

Any other comments?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants