Skip to content

Conversation

jeremiedbb
Copy link
Member

@jeremiedbb jeremiedbb commented Jul 8, 2020

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

Copy link
Member

@glemaitre glemaitre left a 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.

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@TomDLT TomDLT left a comment

Choose a reason for hiding this comment

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

Nice cleaning !

@TomDLT TomDLT merged commit 7836a98 into scikit-learn:master Jul 9, 2020
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Aug 3, 2020
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.

3 participants