8000 DOC Add link to plot_lasso_coordinate_descent_path in lasso_path docstring(#30621) by VirenPassi · Pull Request #31616 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC Add link to plot_lasso_coordinate_descent_path in lasso_path docstring(#30621) #31616

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 8 commits into
base: main
Choose a base branch
from
7 changes: 6 additions & 1 deletion sklearn/linear_model/_coordinate_descent.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,14 @@ def lasso_path(

Notes
-----
For an example, see
For an example, see:
:ref:`examples/linear_model/plot_lasso_lasso_lars_elasticnet_path.py
<sphx_glr_auto_examples_linear_model_plot_lasso_lasso_lars_elasticnet_path.py>`.

For a visual example of computing and plotting the Lasso coordinate
descent path, see:
:ref:`sphx_glr_auto_examples_linear_model_plot_lasso_coordinate_descent_path`.

To avoid unnecessary memory duplication the X argument of the fit method
should be directly passed as a Fortran-contiguous numpy array.

Expand Down Expand Up @@ -355,6 +359,7 @@ def lasso_path(
>>> print(coef_path_continuous([5., 1., .5]))
[[0. 0. 0.46915237]
[0.2159048 0.4425765 0.23668876]]

"""
return enet_path(
X,
Expand Down
Loading
0