Chapter 1

Introduction to Clustering

Learning Objectives

By the end of this chapter, you will be able to:

  • Distinguish between supervised learning and unsupervised learning
  • Explain the concept of clustering
  • Implement k-means clustering algorithms using built-in Python packages
  • Calculate the Silhouette Score for your data

In this chapter, we will have a look at the concept of clustering.


Have you ever been asked to take a look at some data and come up empty handed? Maybe you were not familiar with the dataset, or maybe you didn't even know where to start. This may have been extremely frustrating, and even embarrassing, depending on who asked you to take care of the task.

You are not alone, and, interestingly enough, there ...

Get Applied Unsupervised Learning with Python now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.