K-means clustering
K-means clustering is our first example of an unsupervised machine learning model. Remember this means that we are not making predictions; we are trying instead to extract structure from seemingly unstructured data.
Clustering is a family of unsupervised machine learning models that attempt to group data points into clusters with centroids.
Note
Definition:
Cluster: A group of data points that behave similarly.
Definition:
Centroid: The center of a cluster. Can be thought of as an average point in the cluster.
The preceding definition can be quite vague, but it becomes specific when narrowed down to specific domains. For example, online shoppers who behave similarly might shop for similar things or at similar shops, whereas similar ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access