Skip to content

DOC: Clarify that coefficients in LogisticRegression can be sparse#34093

Merged
jeremiedbb merged 2 commits into
scikit-learn:mainfrom
david-cortes-intel:sp_coef_doc
May 25, 2026
Merged

DOC: Clarify that coefficients in LogisticRegression can be sparse#34093
jeremiedbb merged 2 commits into
scikit-learn:mainfrom
david-cortes-intel:sp_coef_doc

Conversation

@david-cortes-intel
Copy link
Copy Markdown
Contributor

Reference Issues/PRs

What does this implement/fix? Explain your changes.

AI usage disclosure

I used AI assistance for:

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Any other comments?

Fitted coefficients in logistic regression can be sparsified, but the docs state that they are ndarray.

Copy link
Copy Markdown
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. I removed array for consistency: it will be done all at once at some point. LGTM

@jeremiedbb jeremiedbb enabled auto-merge (squash) May 25, 2026 10:10
@jeremiedbb jeremiedbb merged commit 4fa8cb5 into scikit-learn:main May 25, 2026
38 checks passed
@jeremiedbb jeremiedbb mentioned this pull request Jun 1, 2026
16 tasks
jeremiedbb added a commit that referenced this pull request Jun 2, 2026
…4093)

Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
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