-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC rework the example presenting the regularization path of Lasso, Lasso-LARS, and Elastic Net #30028
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
base: main
Are you sure you want to change the base?
DOC rework the example presenting the regularization path of Lasso, Lasso-LARS, and Elastic Net #30028
Conversation
…asso-LARS, and Elastic Net
Could introduce the narrative within the code and get a notebook-like example. You can see this example for such format: https://github.com/scikit-learn/scikit-learn/blob/main/examples/inspection/plot_linear_model_coefficient_interpretation.py which would give the following rendering: https://scikit-learn.org/dev/auto_examples/inspection/plot_linear_model_coefficient_interpretation.html#sphx-glr-auto-examples-inspection-plot-linear-model-coefficient-interpretation-py |
I've integrated the notebook style into the example, and it’s ready for review. Thank you for the references! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm updating this PR to accomodate #27151.
My plan is to group regularization of linear and logistic regression into the same place. Specifically, I intend to combine:
This reverts commit 5bcfaf8.
…ltiple examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I grouped the following examples together to consolidate the discussion on linear and logistic regression regularization in one place:
plot_lasso_lasso_lars_elasticnet_path.py
plot_sgd_penalties.py
plot_ridge_coeffs.py
plot_ridge_path.py
plot_logistic_l1_l2_sparsity.py
plot_logistic_path.py
I also updated the example links accordingly.
Let me know if I missed anything—I'd be happy to make further adjustments.
Reference Issues/PRs
Fixes #29963, also towards #27151.
What does this implement/fix? Explain your changes.
This PR reworks the example of Lasso, Lasso-LARS, and Elastic Net regularization paths as presented here: URL.
Additionally, It groups the following examples together:
plot_lasso_lasso_lars_elasticnet_path.py
plot_sgd_penalties.py
plot_ridge_coeffs.py
plot_ridge_path.py
plot_logistic_l1_l2_sparsity.py
plot_logistic_path.py
Any other comments?
cc: @glemaitre