Skip to content

Conversation

@ayoub-boutaleb922
Copy link

Reference Issues/PRs

Fixes #17181

What does this implement/fix?

This PR clarifies the documentation for Lasso.path() to address the
confusion around the default l1_ratio=0.5 parameter.

Problem

The Lasso.path() method is inherited from ElasticNet and defaults to
l1_ratio=0.5. This is inconsistent with the Lasso estimator itself,
which optimizes with an implicit l1_ratio=1.0 (pure L1 penalty).

Changes

  • Added a .. note:: in the Lasso class docstring explaining that
    path() is inherited from ElasticNet with l1_ratio=0.5 default
  • Updated lasso_path description in "See Also" to recommend it for
    computing true Lasso paths

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.

Lasso.path() same as ElasticNet.path()?

1 participant