-
-
Notifications
You must be signed in to change notification settings - Fork 26k
DOC: Add seealso link to Ridge regression example in user guide (#30621) #31581
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The user guide already has enough links to that example. You could instead add a link to the example in the docstring of alpha
in Ridge
.
doc/modules/linear_model.rst
Outdated
.. seealso:: | ||
|
||
For a visual demonstration of how Ridge coefficients evolve with regularization, | ||
see *plot_ridge_path.py*: | ||
:ref:`sphx_glr_auto_examples_linear_model_plot_ridge_path.py` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we use the .. seealso
directive for these. But maybe we should.
Hi! Let me know if any further adjustments are needed. Thanks again! |
doc/modules/linear_model.rst
Outdated
@@ -109,6 +109,13 @@ The complexity parameter :math:`\alpha \geq 0` controls the amount | |||
of shrinkage: the larger the value of :math:`\alpha`, the greater the amount | |||
of shrinkage and thus the coefficients become more robust to collinearity. | |||
|
|||
.. seealso:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you forgot to remove these or push the removal here.
Hi @adrinjalali, |
This PR adds a contextual
seealso
reference in the Ridge regression section of the user guide to link theplot_ridge_path.py
example.Although the example was already listed at the bottom, this inline reference improves discoverability for readers following the theoretical explanation.
Closes #30621 for this example.