Skip to content

DOC improve User Guide on Linear Models - MultiTaskLasso - #35329

Merged
lucyleeow merged 2 commits into
scikit-learn:mainfrom
lorentzenchr:ug_linear_models_multi_lasso
Nov 13, 2026
Merged

lucyleeow merged 2 commits into
scikit-learn:mainfrom
lorentzenchr:ug_linear_models_multi_lasso

Conversation

@lorentzenchr

Copy link
Copy Markdown
Member

Reference Issues/PRs

Contributes to #33537.
Continuation of #35321.

What does this implement/fix? Explain your changes.

This PR improves the user guide on linear models:

  • MultiTaskLasso

AI usage disclosure

  • Research

Any other comments?

@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!

Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Resolved
Comment thread doc/modules/linear_model.rst Outdated
the coefficients are 2-dimensional, :math:`W` is of shape ``(n_features, n_targets)``
and accessible as the transpose of the coefficient attribute, ``coef_.T``. The
constraint is that the selected features are the same for all the regression problems.
It is then the penalty that correlates each feature with all tasks.

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.

Suggested change
It is then the penalty that correlates each feature with all tasks.
This is enforced by the penalty, which groups each feature’s coefficients across all tasks.

? not sure

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I used "couples" instead of "groups". Not sure if that is still correct English.

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.

Seems fine to me.

I don't think this needs a 2nd review, wdyt?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, 1 reviewer with merge rights is enough.

@lucyleeow
lucyleeow merged commit cf52283 into scikit-learn:main Nov 13, 2026
36 checks passed
@lorentzenchr
lorentzenchr deleted the ug_linear_models_multi_lasso branch November 13, 2026 14:19
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.

2 participants