Skip to content

[MRG] Make k_means use KMeans instead #14985

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
Sep 16, 2019

Conversation

NicolasHug
Copy link
Member

This PR makes k_means use KMeans.fit instead of the reverse (see #14897 why)

This will help make the changes in #13603 less controversial.

API, functionalities and tests are unchanged.

I hope this also illustrates that k_means is mostly a useless wrapper.

ping @agramfort @adrinjalali @jnothman .

@agramfort
Copy link
Member

+146 −131 :)

@NicolasHug
Copy link
Member Author

Yes, going from a function to a method gives us 4 characters less.

@NicolasHug
Copy link
Member Author

also ping @jeremiedbb since you've been working on the file

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

Glad to see this happening :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants