Skip to content

DOC improve User Guide on Linear Models - Lasso - #35321

Merged
lucyleeow merged 5 commits into
scikit-learn:mainfrom
lorentzenchr:ug_linear_models_lasso
Nov 13, 2026
Merged

lucyleeow merged 5 commits into
scikit-learn:mainfrom
lorentzenchr:ug_linear_models_lasso

Conversation

@lorentzenchr

Copy link
Copy Markdown
Member

Reference Issues/PRs

Contributes to #33537.
Continuation of #35219.

What does this implement/fix? Explain your changes.

This PR improves the user guide on linear models:

  • Lasso

AI usage disclosure

  • Research

Any other comments?

@lorentzenchr
lorentzenchr force-pushed the ug_linear_models_lasso branch from a71c98c to ebc6148 Compare November 6, 2026 14:03

@virchan virchan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR, @lorentzenchr.

I have a few nits. Otherwise, LGTM.

Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved

@virchan virchan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @lorentzenchr!

@virchan virchan added the Waiting for Second Reviewer First reviewer is done, need a second one! label Nov 7, 2026
@lorentzenchr

Copy link
Copy Markdown
Member Author

@lucyleeow Also interested in this one? (tell me if you don’t want me to tag you on these doc PRs)

@lucyleeow lucyleeow left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I did see this but just hadn't gotten around to it! Happy to be pinged.

Comment thread doc/modules/linear_model.rst Outdated
Comment on lines +348 to +349
This shows that different estimators use a different scaling behaviour of the penalty
parameter ``alpha`` with the sample size ``n_samples``.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is nice that this is detailed (especially after all the discussion in #32042). It's implied from the equation but would it be worth adding something like 'Thus the influence of alpha fades with increasing n for Ridge but not Lasso'? (for the more mathematically challenged among us - i.e. me)

Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
@lucyleeow
lucyleeow enabled auto-merge (squash) November 13, 2026 07:36
@lucyleeow
lucyleeow merged commit f761303 into scikit-learn:main Nov 13, 2026
34 checks passed
@lorentzenchr
lorentzenchr deleted the ug_linear_models_lasso branch November 13, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation size/M Waiting for Second Reviewer First reviewer is done, need a second one!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants