K-means clustering

Ever wondered how your favorite streaming service recommends shows?

Image: Jouasse, CC BY-SA 4.0, via Wikimedia Commons

K-means clustering

Ever wondered how your favorite streaming service recommends shows?

Imagine you're trying to organize your bookshelf by genre, but you have books from multiple genres mixed together. You want to sort them into separate sections for easier access.

Think of k-means clustering like sorting your mixed books into neat piles based on their genre. Each pile represents a cluster of books that are similar in genre.

Example

You have 100 books, and you want to sort them into 5 genres. The algorithm groups them into 5 piles, each with books that are closely related in terms of genre.

Remember this

K-means clustering helps you organize data (like books) into groups (clusters) where each group is similar to the others.

Related concepts

Swipe through more Machine Learning concepts

Open Pocket Polymath