Chapter 4

Choosing the Best Segmentation Approach

Learning Objectives

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

  • Tune hyperparameters (such as the number of clusters) of clustering algorithms using various methods
  • Use the mean-shift, k-mode, and k-prototype clustering techniques
  • Evaluate and fine-tune clustering

This chapter covers various clustering algorithms (apart from k-means) and explains how they can be evaluated.


In the previous chapter, we introduced the concept of clustering, and practiced it using k-means clustering. However, several issues remained unresolved, such as how to choose the number of clusters and how to evaluate a clustering technique once the clusters are created. This chapter aims to expand ...

Get Data Science for Marketing Analytics 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.