Skip to content

FIX Fix LogisticRegressionCV bug when a fold does not contain all classes - #32749

Closed
lesteve wants to merge 1 commit into
scikit-learn:mainfrom
lesteve:fix-logisticregressioncv-fold-without-all-classes
Closed

lesteve wants to merge 1 commit into
scikit-learn:mainfrom
lesteve:fix-logisticregressioncv-fold-without-all-classes

Conversation

@lesteve

@lesteve lesteve commented Nov 20, 2025 •

Copy link
Copy Markdown
Member

Addresses #32748 following suggestions by @lorentzenchr.

I guess I would still need to add a test checking that the coefficients are zero for the absent class.

@github-actions

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 27546a4. Link to the linter CI: here

@lesteve

lesteve commented Nov 20, 2025

Copy link
Copy Markdown
Member Author

Closing since #32747 was already opened and I missed it ...

@lesteve lesteve closed this Nov 20, 2025
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.

1 participant