Skip to content
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

ENH Check for nonfinite coordinate descent #22148

Merged

Conversation

chritter
Copy link
Contributor

@chritter chritter commented Jan 8, 2022

Reference Issues/PRs

Addresses #17925.

What does this implement/fix? Explain your changes.

This implements check for non-finite values of estimator parameters: as produced from coordinate descent for linear models.

Any other comments?

Work done with @norbusan.

Originally part of larger PR #22092

@chritter chritter force-pushed the issue17925-checkfinite-coordinate-descent branch from 9272893 to 123f5b2 Compare January 8, 2022 19:29
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 @chritter !

sklearn/linear_model/_coordinate_descent.py Outdated Show resolved Hide resolved
sklearn/linear_model/tests/test_coordinate_descent.py Outdated Show resolved Hide resolved
doc/whats_new/v1.1.rst Show resolved Hide resolved
Co-authored-by: Norbert Preining <norbert@preining.info>
@norbusan norbusan force-pushed the issue17925-checkfinite-coordinate-descent branch from 9dc3a4f to 6224abb Compare January 14, 2022 04:56
doc/whats_new/v1.1.rst Outdated Show resolved Hide resolved
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 update!

sklearn/linear_model/_coordinate_descent.py Outdated Show resolved Hide resolved
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
@thomasjpfan thomasjpfan changed the title test for nonfinite coordinate descent ENH test for nonfinite coordinate descent Jan 17, 2022
@thomasjpfan thomasjpfan changed the title ENH test for nonfinite coordinate descent ENH Check for nonfinite coordinate descent Jan 17, 2022
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.

LGTM!

sklearn/linear_model/_coordinate_descent.py Outdated Show resolved Hide resolved
sklearn/linear_model/tests/test_coordinate_descent.py Outdated Show resolved Hide resolved
Co-authored-by: Christian Lorentzen <lorentzen.ch@gmail.com>
@chritter
Copy link
Contributor Author

chritter commented Jan 18, 2022

@lorentzenchr Thank you for the review and suggestions which were adopted.

@jjerphan jjerphan merged commit ddbf5b3 into scikit-learn:main Jan 20, 2022
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.

4 participants