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

Kmeans mojo - initialize centroids same way in all three implementations #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vitcra
Copy link

@vitcra vitcra commented Jun 12, 2024

@shashankprasanna here are the changes I did to make sure centroids are initialized same way for all three implementations (kmeans_plus_plus is now in utils). I did other minor changes to practice and gain confidence with Mojo. Also, had to change some things to work with latest Mojo release.

I doubt that Sklearn performs less iterations, since with the change to how centroids are initialized, I am always getting same inertia in all three implementations which makes the benchmarks fairer.

I did not know how to contact you otherwise, you can ignore this pull request of course.

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.

2 participants