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

Skip to content

DOC: Add example link to LogisticRegression docstring #31606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

MauryaGhogare
Copy link

This PR adds a Sphinx reference link to the LogisticRegression docstring.

It now points to the example:
:ref:example_linear_model_plot_logistic_path

This helps users find a working example more easily.

Let me know if anything needs fixing. Thanks!

Copy link

github-actions bot commented Jun 20, 2025

❌ Linting issues

This PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling pre-commit hooks. Instructions to enable them can be found here.

You can see the details of the linting issues under the lint job here


ruff check

ruff detected issues. Please run ruff check --fix --output-format=full locally, fix the remaining issues, and push the changes. Here you can see the detected issues. Note that the installed ruff version is ruff=0.11.7.


sklearn/linear_model/_logistic.py:1126:40: W291 Trailing whitespace
     |
1124 |     :ref:`sphx_glr_auto_examples_classification_plot_classification_probability.py`.
1125 |
1126 |     You can find a visual example here: 
     |                                        ^ W291
1127 |     :ref:`example_linear_model_plot_logistic_path`
     |
     = help: Remove trailing whitespace

sklearn/linear_model/_ridge.py:1513:89: E501 Line too long (89 > 88)
     |
1511 |     0.9595...
1512 |
1513 |     You can find a visual example here: :ref:`example_linear_model_plot_ridge_classifier`
     |                                                                                         ^ E501
     |

Found 2 errors.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).

Generated for commit: 9fa3b73. Link to the linter CI: here

@MauryaGhogare
Copy link
Author

Hi! I've resolved the linting issues in this PR. All checks should now pass.
Let me know if anything else is needed. Thanks again for your time!

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.

1 participant