Skip to content

DOC Add link to plot_lasso_and_elasticnet.py example in linear model #30586

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

Closed
wants to merge 2 commits into from

Conversation

marouaneaka
Copy link

Reference Issues/PRs

Fixes #26927 26927

What does this implement/fix? Explain your changes.

Added links to lasso and elasticnet classes

Any other comments?

Copy link

github-actions bot commented Jan 5, 2025

❌ Linting issues

This PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling pre-commit hooks. Instructions to enable them can be found here.

You can see the details of the linting issues under the lint job here


ruff

ruff detected issues. Please run ruff check --fix --output-format=full . locally, fix the remaining issues, and push the changes. Here you can see the detected issues. Note that the installed ruff version is ruff=0.5.1.


sklearn/linear_model/_coordinate_descent.py:861:1: W293 Blank line contains whitespace
    |
859 |     If so, then additionally check whether the dual gap is smaller than `tol` times
860 |     :math:`||y||_2^2 / n_{\text{samples}}`.
861 |     
    | ^^^^ W293
862 |     For an example showcasing Elastic-Net alongside Lasso and ARDRegression for sparse
863 |     signal recovery in the presence of noise and feature correlation, see:
    |
    = help: Remove whitespace from blank line

sklearn/linear_model/_coordinate_descent.py:1269:1: W293 Blank line contains whitespace
     |
1267 |     LassoLarsCV : Lasso least angle parameter algorithm by cross-validation.
1268 |     sklearn.decomposition.sparse_encode : Sparse coding array estimator.
1269 |     
     | ^^^^ W293
1270 |     For an example comparing Lasso with other L1-based regression models
1271 |     (Elastic-Net and ARDRegression) on sparse and noisy data, see:
     |
     = help: Remove whitespace from blank line

Found 2 errors.
No fixes available (2 hidden fixes can be enabled with the `--unsafe-fixes` option).

Generated for commit: 0f6758b. Link to the linter CI: here

@marouaneaka marouaneaka changed the title Update docs DOC Add link to plot_lasso_and_elasticnet.py example in linear model Jan 5, 2025
@marouaneaka marouaneaka closed this Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add links to examples from the docstrings and user guides
1 participant