Skip to content

DOC: Add reference to digits classification example in LogisticRegression docstring - #31258

Closed
yanamis wants to merge 1 commit into
scikit-learn:mainfrom
yanamis:add-link-digits-classification
Closed

yanamis wants to merge 1 commit into
scikit-learn:mainfrom
yanamis:add-link-digits-classification

Conversation

@yanamis

@yanamis yanamis commented Apr 27, 2025

Copy link
Copy Markdown

Adds a reference to the digits classification example (plot_digits_classification.py) in the LogisticRegression class docstring, following issue #30621.

@github-actions

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: d2278d5. Link to the linter CI: here

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

Hi @yanamis,

thanks for your efforts.

I will though close this PR, because the example you added a reference for in _logistic.py does not even contain LogisticRegression and thus the link would be misplaced here.

(Also, and separate from what I wrote above, I would assume that the example doesn't need to be linked any further.)

Please feel free to take on a new task from issue #30621.

>>> clf.score(X, y)
0.97...

See also

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.

Suggested change
See also
See Also

This should fix the CI error, since See Also is existing, while See also is not.

@yanamis

yanamis commented Apr 29, 2025

Copy link
Copy Markdown
Author

Thanks for the feedback, @StefanieSenger. This was my first contribution and I misunderstood how the examples should be matched. I appreciate the clarification and will be more careful next time.

@StefanieSenger

Copy link
Copy Markdown
Member

Hi @yanamis, no worries, we're all learning.
Looking forward to your next contribution. :)

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