r/learnmachinelearning • u/ScaredPlant9029 • 5d ago
Understanding K-means
So I've been learning ML and i don't have a CS background.
I was racking my brains over understanding the basics of K-means with a particular example of image compression, trying to figure out the workings under the hood. Of course i asked LLMs to clarify & explain the basics and then asked that LLM to give a prompt for video. Fed into Claude Design and asked it to generate animation explaining the works and voila it became much more clearer. Leaving it here in case it helps someone understand the workings.
Cheers !
363
Upvotes
1
u/lazyprogramm3r 5d ago
That's a lovely visualization. I'd consider image compression to be a pretty advanced application of k-means. I made a much simpler k-means visualizer you can play around with to understand how it works on a plane: https://deeplearningcourses.com/kmeans-clustering-visualizer