Clustering

Learning Objectives

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

  • Summarize the basics of clustering
  • Perform flat clustering with the k-means algorithm
  • Perform hierarchical clustering with the mean shift algorithm

In this chapter, you will learn about the fundamentals of clustering, which will be illustrated with two unsupervised learning algorithms.

Introduction to Clustering

In the previous chapters, we dealt with supervised learning algorithms to perform classification and regression. We used training data to train our classification or regression model, and then we validated our model using testing data.

In this chapter, we will perform unsupervised learning by using clustering algorithms.

We may use clustering to ...

Get Artificial Intelligence and Machine Learning Fundamentals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.