Repository navigation
DOC: Fix penalty deprecation docs for LogisticRegression and LogisticRegressionCV - #34107
Merged
jeremiedbb merged 4 commits intoMay 25, 2026
Merged
jeremiedbb merged 4 commits into
jeremiedbb merged 4 commits into
Conversation
…ticRegression and LogisticRegressionCV
jeremiedbb
approved these changes
May 25, 2026
jeremiedbb
left a comment
Member
There was a problem hiding this comment.
Thanks for the PR @baynecheke. I removed the chagelog entry because we don't include that for doc or change in messages. LGTM
jeremiedbb
enabled auto-merge (squash)
May 25, 2026 09:58
|
@baynecheke , thanks very much!
One off-topic question: where could AI be applied here? (: |
jeremiedbb
added a commit
that referenced
this pull request
Jun 2, 2026
…ticRegressionCV (#34107) Co-authored-by: Jérémie du Boisberranger <[email protected]>
prady0t
pushed a commit
to prady0t/scikit-learn
that referenced
this pull request
Sep 2, 2026
…ticRegressionCV (scikit-learn#34107) Co-authored-by: Jérémie du Boisberranger <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DOC Fix penalty deprecation docs for LogisticRegression and LogisticRegressionCV
Reference Issues/PRs
Fixes #34090
What does this implement/fix? Explain your changes.
The deprecation notice for the
penaltyparameter inLogisticRegressionand
LogisticRegressionCVwas missing thepenalty=Nonecase. Users whorelied on
penalty=Nonehad no guidance on the equivalent new API (C=np.inf).The FutureWarning raised at runtime was also missing the
penalty='elasticnet'case for
LogisticRegression, and missing both elasticnet and None cases forLogisticRegressionCV.This PR adds the missing cases and fixes a typo in both docstrings
(
'penalty='elasticnet'→penalty='elasticnet').AI usage disclosure
I used AI assistance for: