+ 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