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

Skip to content

DOC fix typo and inconsistencies in RidgeClassifier docstrings - #34402

Merged
betatim merged 2 commits into
scikit-learn:mainfrom
vashita-pandey:doc-fix-ridge-classifier
Jul 2, 2026
Merged

DOC fix typo and inconsistencies in RidgeClassifier docstrings#34402
betatim merged 2 commits into
scikit-learn:mainfrom
vashita-pandey:doc-fix-ridge-classifier

Conversation

@vashita-pandey

@vashita-pandey vashita-pandey commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Closes #34401

What does this fix?

Fixes several docstring issues in sklearn/linear_model/_ridge.py:

  1. Typo: "spare matrix" → "sparse matrix" in _RidgeClassifierMixin.predict
  2. Extra space removed in Ridge's See Also section for RidgeClassifierCV
  3. Added :func: RST links to solver descriptions in RidgeClassifier
    to match the formatting already used in Ridge

@vashita-pandey

Copy link
Copy Markdown
Contributor Author

Closes #34401

@betatim

betatim commented Jun 30, 2026

Copy link
Copy Markdown
Member

Please take the time to fill in the PR description and resolve the linter errors.

Otherwise this looks reasonable to me. Thanks for finding and fixing the typos

@vashita-pandey

Copy link
Copy Markdown
Contributor Author

Thank you for the feedback. I have updated the PR description.
The cython-lint errors are pre-existing issues in .pyx files
that are unrelated to my changes — ruff, mypy, and the formatter
all passed cleanly.

@vashita-pandey
vashita-pandey marked this pull request as ready for review July 1, 2026 05:16

@AnneBeyer AnneBeyer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @vashita-pandey, thank you for the fixes. I can confirm that the linting errors are unrelated (and should go away if you merge main into your branch again).

Just one note on the procedure: The idea behind opening an issue first is that a maintainer can mark it as ready for contribution once it is triaged and discussed (we currently have >1.5k open issues, so we need to be selective on what is worth the reviewing time). You opened this PR while the issue was still labelled “Needs triage”.
On the other hand, fixing typos doesn't necessarily require opening an issue first, so I would be fine with merging this one anyway, @betatim.

@vashita-pandey

Copy link
Copy Markdown
Contributor Author

@AnneBeyer
Thank you for the feedback! I will make sure to wait for the
"Needs Triage" label to be removed before opening a PR in future.
I appreciate the guidance.

@betatim

betatim commented Jul 1, 2026

Copy link
Copy Markdown
Member

I merged main to see if this resolves the linter errors. As another note on procedure: we can't merge PRs while the checks are red. So even if the errors are unrelated to the changes in the PR, they need to be resolved in the PR (in this case by merging main).

I recommend for typo fixes like this to not open an issue first. For everything else it is good practice to open an issue first and wait for the discussion to settle on what to do and if it is worth doing. There are many things that could be done and would be improvements, but for other reasons we decide against doing them.

@betatim
betatim enabled auto-merge (squash) July 1, 2026 14:26
@betatim

betatim commented Jul 1, 2026

Copy link
Copy Markdown
Member

I enabled automerge, if merging main into this PR resolves everything then this PR will get merged. Thanks everyone!

@betatim
betatim merged commit 9dc4f7b into scikit-learn:main Jul 2, 2026
38 checks passed
@betatim

betatim commented Jul 2, 2026

Copy link
Copy Markdown
Member

Need to approve for auto merge to work ...

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 pushed 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.

DOC: fix typo and inconsistencies in RidgeClassifier docstrings

3 participants