DOC rework the example presenting the regularization path of Lasso, Lasso-LARS, and Elastic Net#30028
DOC rework the example presenting the regularization path of Lasso, Lasso-LARS, and Elastic Net#30028virchan wants to merge 19 commits intoscikit-learn:mainfrom
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! |
This reverts commit 5bcfaf8.
…ltiple examples.
virchan
left a comment
There was a problem hiding this comment.
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.pyplot_sgd_penalties.pyplot_ridge_coeffs.pyplot_ridge_path.pyplot_logistic_l1_l2_sparsity.pyplot_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.pyplot_sgd_penalties.pyplot_ridge_coeffs.pyplot_ridge_path.pyplot_logistic_l1_l2_sparsity.pyplot_logistic_path.pyAny other comments?
cc: @glemaitre