Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Update Lasso class docstring _coordinate_descent.py #30911

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

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

goutam-kul
Copy link
Contributor

@goutam-kul goutam-kul commented Feb 27, 2025

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Fixes #30893
As mentioned in #30893, in the Lasso class documentation there was an incorrect suggestion that it also supports arrays input when it doesn't.

The documentation line "If an array is passed, penalties are assumed to be specific to the targets. Hence they must correspond in number." in the Lasso docs needed to be removed or the implementation needed to updated.

For quick fix I have remove the line from the documentation, as in #11566 a good discussion was done on this topic but no conclusion was formed.

Copy link

github-actions bot commented Feb 27, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: f09d915. Link to the linter CI: here

@thomasjpfan thomasjpfan changed the title Update Lasso class docstring _coordinate_descent.py DOC Update Lasso class docstring _coordinate_descent.py Feb 28, 2025
Copy link
Member

@thomasjpfan thomasjpfan left a comment

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

LGTM

@thomasjpfan thomasjpfan added the Quick Review For PRs that are quick to review label Feb 28, 2025
Copy link
Member

@virchan virchan left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @goutam-kul!

@virchan
Copy link
Member

virchan commented Mar 2, 2025

@goutam-kul, could you please add "Fixes #30893" under the "Reference Issues/PRs" section of the PR description? This will automatically close the issue when the PR is merged.

@goutam-kul
Copy link
Contributor Author

@virchan Mentioned the issue number in the description, thanks for the input, I will keep this in mind for my next PRs.

Copy link
Contributor

@OmarManzoor OmarManzoor left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @goutam-kul

@OmarManzoor OmarManzoor merged commit 8a9a882 into scikit-learn:main Mar 4, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The alpha parameter for lasso regression can only be a float
4 participants