Skip to content

Commit

Permalink
DOC add links to examples/linear_model/plot_elastic_net_precomputed_g…
Browse files Browse the repository at this point in the history
…ram_matrix_with_weighted_samples.py (#28895)

Co-authored-by: bivav <bivavraj@gmail.com>
  • Loading branch information
tuhinsharma121 and bivav committed May 6, 2024
1 parent a5203e8 commit febf190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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
3 changes: 3 additions & 0 deletions sklearn/linear_model/_coordinate_descent.py
Expand Up @@ -776,6 +776,9 @@ class ElasticNet(MultiOutputMixin, RegressorMixin, LinearModel):
Whether to use a precomputed Gram matrix to speed up
calculations. The Gram matrix can also be passed as argument.
For sparse input this option is always ``False`` to preserve sparsity.
Check :ref:`an example on how to use a precomputed Gram Matrix in ElasticNet
<sphx_glr_auto_examples_linear_model_plot_elastic_net_precomputed_gram_matrix_with_weighted_samples.py>`
for details.
max_iter : int, default=1000
The maximum number of iterations.
Expand Down

0 comments on commit febf190

Please sign in to comment.