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

Skip to content

DOC Update RidgeClassifier and RidgeClassifierCV coef_ shape documentation - #34657

Merged
betatim merged 6 commits into
scikit-learn:mainfrom
heyyveer:doc-ridgeclassifier-coef-shape
Aug 7, 2026
Merged

DOC Update RidgeClassifier and RidgeClassifierCV coef_ shape documentation#34657
betatim merged 6 commits into
scikit-learn:mainfrom
heyyveer:doc-ridgeclassifier-coef-shape

Conversation

@heyyveer

@heyyveer heyyveer commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Closes #34170

What does this implement/fix? Explain your changes.

Updates the coef_ attribute documentation for RidgeClassifier and RidgeClassifierCV to match the current implementation.

For binary classification, coef_ is returned as a 1D array of shape (n_features,), consistent with the behavior introduced in #19746.

AI usage disclosure

I used AI assistance for:

  • Research and understanding
  • Documentation (including examples)

Any other comments?

This PR follows the discussion in #34170 and updates the documentation to reflect the current implementation.

Removed extra blank lines in the docstring for coef_ attribute.
@github-actions github-actions Bot removed the CI:Linter failure The linter CI is failing on this PR label Aug 5, 2026

@betatim betatim 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.

Thanks!

@betatim
betatim merged commit 9b9be3a into scikit-learn:main Aug 7, 2026
38 checks passed
@heyyveer
heyyveer deleted the doc-ridgeclassifier-coef-shape branch August 7, 2026 15:06
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
jeremiedbb added a commit to jeremiedbb/scikit-learn that referenced this pull request Sep 8, 2026
jeremiedbb added a commit to jeremiedbb/scikit-learn that referenced this pull request Sep 9, 2026
jeremiedbb added a commit to jeremiedbb/scikit-learn that referenced this pull request Sep 9, 2026
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.

RidgeClassifier binary coef_ shape does not match documented shape

2 participants