Skip to content

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

Closed
vitcra wants to merge 1 commit into
modular:mainfrom
vitcra:kmeans-reproducibility
Closed

vitcra wants to merge 1 commit into
modular:mainfrom
vitcra:kmeans-reproducibility

Conversation

@vitcra

@vitcra vitcra commented Jun 12, 2024

Copy link
Copy Markdown

@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.

@ehsanmok ehsanmok closed this Apr 19, 2025
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.

3 participants