Skip to content

DOC: Add missing link to plot_logistic.py in Logistic Regression documentation #30942

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

shbradki
Copy link

@shbradki shbradki commented Mar 4, 2025

Reference Issues/PRs

Towards #30621

What does this implement/fix? Explain your changes.

  • Adds a missing reference to plot_logistic.py in the Logistic Regression section of the User Guide (linear_model.rst).

  • Updates the LogisticRegression docstring (_logistic.py) to include a reference to the example.

Any other comments?

Copy link

github-actions bot commented Mar 4, 2025

✔️ Linting Passed

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

Generated for commit: 784d20c. Link to the linter CI: here

@StefanieSenger
Copy link
Contributor

Hello @shbradki,

thank you for your PR! The links seem well placed to me, but you have to take care of the linting issues (the lines are too long). Best is to install pre-commit as mentioned in the issue and commit again.

Copy link
Contributor

@StefanieSenger StefanieSenger left a comment

Choose a reason for hiding this comment

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

Thank you @shbradki, that's a valuable addition to the docs.

I only have a few nits.

shbradki and others added 2 commits March 5, 2025 19:15
Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com>
Co-authored-by: Stefanie Senger <91849487+StefanieSenger@users.noreply.github.com>
@shbradki
Copy link
Author

shbradki commented Mar 5, 2025

Thank you @shbradki, that's a valuable addition to the docs.

I only have a few nits.

Thank you, I thought I had edited the rst file as well but evidently not. Thanks for the correction!

@StefanieSenger
Copy link
Contributor

Happy this PR moved so fast.

@adrinjalali, can we merge it?

@adrinjalali
Copy link
Member

@shbradki thank for the contribution.

Looking at the example, I find the example a bit odd. It's comparing a regression model (linear regression) with a classification model (logistic regression).

On top of that, we already have other, much better logistic regression examples.

So I think we can remove the example altogether, and redirect to one of the existing examples. You can check an example of how to do so here: #30906

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.

3 participants