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

Skip to content

Conversation

@Micky774
Copy link
Contributor

@Micky774 Micky774 commented Aug 4, 2022

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Minor re-factor which moves the object and non-float logic to the beginning, allowing us to de-indent the majority of the function. Cosmetic change, but improves readability non-negligibly imo.

Any other comments?

@Micky774 Micky774 added No Changelog Needed Quick Review For PRs that are quick to review labels Aug 4, 2022
@Micky774 Micky774 changed the title MAINT Minor refactor to de-indent MAINT Minor refactor to de-indent majority of _assert_all_finite Aug 4, 2022
Copy link
Member

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

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

LGTM, this eases the logic. Thank you @Micky774.

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 refactor! LGTM

@thomasjpfan thomasjpfan merged commit c13ed7c into scikit-learn:main Aug 5, 2022
@Micky774 Micky774 deleted the assert_all_finite_refactor branch August 5, 2022 14:12
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 12, 2022
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.

3 participants