Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MNT add CD_Algo enum to coordinate descent - code simplification - #34514

Merged
virchan merged 2 commits into
scikit-learn:mainfrom
lorentzenchr:cd_algo_enum
Jul 25, 2026
Merged

MNT add CD_Algo enum to coordinate descent - code simplification#34514
virchan merged 2 commits into
scikit-learn:mainfrom
lorentzenchr:cd_algo_enum

Conversation

@lorentzenchr

Copy link
Copy Markdown
Member

Reference Issues/PRs

None

What does this implement/fix? Explain your changes.

This PR adds class CD_Algo(Enum) to coordinate descent code to simplify code logic, in particular inside the main loop in def enet_path.

AI usage disclosure

None

Any other comments?

This will ease a follow-up PR to improve fit speed (again).

@lorentzenchr

Copy link
Copy Markdown
Member Author

@virchan friendly ping.

@virchan virchan left a comment

Copy link
Copy Markdown
Member

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.

Comment thread sklearn/linear_model/_coordinate_descent.py Outdated

@virchan virchan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for fixing the CI, @lorentzenchr!

Merging to main.

@virchan
virchan merged commit b9530aa into scikit-learn:main Jul 25, 2026
38 checks passed
@lorentzenchr
lorentzenchr deleted the cd_algo_enum branch July 26, 2026 15:15
prady0t pushed a commit to prady0t/scikit-learn that referenced this pull request Sep 2, 2026
@jeremiedbb jeremiedbb mentioned this pull request Sep 8, 2026
14 tasks
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