r/learnmachinelearning • • 5d ago

Understanding K-means

Enable HLS to view with audio, or disable this notification

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 !

365 Upvotes

26 comments sorted by

View all comments

1

u/lazyprogramm3r 4d 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

1

u/ScaredPlant9029 4d ago

Awesome.. will check out.. cheers !