Skip to content

ENH Newton-CD part 1: add gap_smaller_eps to CD solvers#34285

Merged
OmarManzoor merged 3 commits into
scikit-learn:mainfrom
lorentzenchr:logistic_lasso_newton_part_1
Jun 19, 2026
Merged

ENH Newton-CD part 1: add gap_smaller_eps to CD solvers#34285
OmarManzoor merged 3 commits into
scikit-learn:mainfrom
lorentzenchr:logistic_lasso_newton_part_1

Conversation

@lorentzenchr

Copy link
Copy Markdown
Member

Reference Issues/PRs

Part 1 of #33160.

What does this implement/fix? Explain your changes.

This PR adda gap_smaller_eps to the dual gap computation, which sets the dual gap to zero in case it is smaller than gap_smaller_eps.
This has no user impact, the current behavior is kept (functionality only for future purposes).

AI usage disclosure

None

Any other comments?

@lorentzenchr

Copy link
Copy Markdown
Member Author

@OmarManzoor @virchan This is a first small PR towards #33160. It is about the dual gap so you are already familiar with that code.

@OmarManzoor OmarManzoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR @lorentzenchr

Comment thread sklearn/linear_model/_cd_fast.pyx Outdated
@github-actions github-actions Bot added the CI:Linter failure The linter CI is failing on this PR label Jun 18, 2026
@github-actions github-actions Bot removed the CI:Linter failure The linter CI is failing on this PR label Jun 18, 2026

@OmarManzoor OmarManzoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @lorentzenchr

@lorentzenchr

Copy link
Copy Markdown
Member Author

@OmarManzoor Thanks for you review. This PR has no user impact, minor improvement. Can we merge already?

@OmarManzoor

Copy link
Copy Markdown
Contributor

@OmarManzoor Thanks for you review. This PR has no user impact, minor improvement. Can we merge already?

Yes sure

@OmarManzoor OmarManzoor merged commit cb4f2be into scikit-learn:main Jun 19, 2026
38 checks passed
@lorentzenchr lorentzenchr deleted the logistic_lasso_newton_part_1 branch June 19, 2026 08:13
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.

2 participants