-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MNT Centralize all param checks in KMeans #17861
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov reports 3 none covered if branches. Even if this is less related to this PR, we could add 3 small tests for those. It does not seem so demanding. Otherwise, LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleaning !
move all checks of init parameters for KMeans and MiniBatchKMeans in a dedicated method (and add missing checks).
Make a single parametrized test to check that error messages are raised appropriately.
Extracted from #17622 to facilitate the reviews