DOC: Add seealso link to Ridge regression example in user guide (#30621)#31581
DOC: Add seealso link to Ridge regression example in user guide (#30621)#31581dhyeyinf wants to merge 4 commits intoscikit-learn:mainfrom
Conversation
adrinjalali
left a comment
There was a problem hiding this comment.
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.
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
| 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.
I think you forgot to remove these or push the removal here.
|
Hi @adrinjalali, |
|
Hi @dhyeyinf, thanks for your contribution! Would you mind to also change the |
|
Thanks @dhyeyinf, could you please explain and restore the change in the |
|
Thanks for the follow-up @adrinjalali! I've restored the inline example reference above the figure in |
|
Hi @dhyeyinf, it seems your AI tool didn't understand my request to restore your change in Please respect our Automated Contributions Policy. I will therefore close this PR. |
|
Hi @adrinjalali, This has been a valuable learning experience, and I’ll be more careful and precise in future contributions. Looking forward to contributing again with a better approach. Best, |
This PR adds a contextual
seealsoreference in the Ridge regression section of the user guide to link theplot_ridge_path.pyexample.Although the example was already listed at the bottom, this inline reference improves discoverability for readers following the theoretical explanation.
Towards #30621 for this example.