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

Rename cluster counting method #14

Merged
merged 3 commits into from Jan 17, 2023

Conversation

betatim
Copy link
Collaborator

@betatim betatim commented Jan 11, 2023

This uses the "Array API" to get the number of clusters instead of adding a new method to the engine.

Rename the engine method used to count distinct clusters.

WDYT?

@ogrisel @fcharras

sklearn/cluster/_kmeans.py Outdated Show resolved Hide resolved
@betatim betatim changed the title Use Array API to get unique cluster count Rename cluster counting method Jan 12, 2023
@betatim
Copy link
Collaborator Author

betatim commented Jan 12, 2023

Updated to just rename the method.

Copy link
Owner

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

I would prefer the following as "centers" is misleading. To be it the array of cluster center coordinates in the n_features dim space.

sklearn/cluster/_kmeans.py Outdated Show resolved Hide resolved
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
@betatim
Copy link
Collaborator Author

betatim commented Jan 17, 2023

Done. I thought it was the cluster center coordinates that are being passed in to the function. But that was wrong.

@ogrisel ogrisel merged commit c7be19a into ogrisel:wip-engines Jan 17, 2023
@ogrisel
Copy link
Owner

ogrisel commented Jan 17, 2023

Merged!

@betatim betatim deleted the engines-cluster-count branch January 17, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants