Skip to content
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

DOC add links to examples/linear_model/plot_elastic_net_precomputed_gram_matrix_with_weighted_samples.py #28895

Merged
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/modules/linear_model.rst
Expand Up @@ -530,6 +530,7 @@ The class :class:`ElasticNetCV` can be used to set the parameters

* :ref:`sphx_glr_auto_examples_linear_model_plot_lasso_and_elasticnet.py`
* :ref:`sphx_glr_auto_examples_linear_model_plot_lasso_coordinate_descent_path.py`
* :ref:`sphx_glr_auto_examples_linear_model_plot_elastic_net_precomputed_gram_matrix_with_weighted_samples.py`

|details-start|
**References**
Expand Down
4 changes: 4 additions & 0 deletions sklearn/linear_model/_coordinate_descent.py
Expand Up @@ -859,6 +859,10 @@ class ElasticNet(MultiOutputMixin, RegressorMixin, LinearModel):
If so, then additionally check whether the dual gap is smaller than `tol` times
:math:`||y||_2^2 / n_{\text{samples}}`.

For an example, see
:ref:`examples/linear_model/plot_elastic_net_precomputed_gram_matrix_with_weighted_samples.py
<sphx_glr_auto_examples_linear_model_plot_elastic_net_precomputed_gram_matrix_with_weighted_samples.py>`.

tuhinsharma121 marked this conversation as resolved.
Show resolved Hide resolved
Examples
--------
>>> from sklearn.linear_model import ElasticNet
Expand Down