K-means algorithm | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

K-means algorithm

Check out my new visualization of the k-means algorithm (2d-plots) https://code.sololearn.com/WKbUixfUwEp7/?ref=app

30th Jun 2017, 5:51 PM
Martin Möhle
Martin Möhle - avatar
7 Answers
+ 12
Excellent! Could you add some randomness to the scatterplot? Perhaps the points locations could be random and the k variable could be adjusted by the user? In any way - a great code, I must say :)
30th Jun 2017, 6:42 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 10
Yep, seen it just a second ago - great stuff! :)
1st Jul 2017, 7:02 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 8
Thanks :) Ya of course I could add those features
30th Jun 2017, 6:44 PM
Martin Möhle
Martin Möhle - avatar
+ 8
@Martin Yes, works alright although is a bit slow. Perhaps different centroids should have different colors of their shortest-distance links?
30th Jun 2017, 6:52 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 8
Ok, im working on it :P Thanks for you feedback👍
30th Jun 2017, 6:57 PM
Martin Möhle
Martin Möhle - avatar
+ 8
Its now reworked and new features are addedđŸ’„ - k variable adjustable - different colors for clusters - 3 different cluster choices - random cluster option Thanks to Kuba SiekierzyƄski for his ideas!
1st Jul 2017, 7:01 AM
Martin Möhle
Martin Möhle - avatar
+ 7
Pretty :)
2nd Jul 2017, 7:39 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar