Skip to Content
Thoughtful Machine Learning
book

Thoughtful Machine Learning

by Matthew Kirk
September 2014
Intermediate to advanced
236 pages
5h 20m
English
O'Reilly Media, Inc.
Content preview from Thoughtful Machine Learning

Chapter 8. Clustering

If you’ve been to a library, you’ve seen clustering at work. The Dewey Decimal System is a form of clustering. Dewey came up with a system that would attach a number of increasing granularity and in doing so, revolutionized libraries.

This idea of categorizing data points, or books, into groups is useful for organizing information. We don’t know what specific category they should belong to, so we just want to split the books into a set of categories.

This type of problem is much different than what we’ve encountered before. All of the problems we have looked at thus far have attempted to figure out the best functional approximation to assign to a given data set and its labels. Now we are more concerned with the data itself, not the labels.

As you will see in this chapter, clustering has one downside, which is that it doesn’t lend itself to use as well as other algorithms. This is called the impossibility theorem.

In this chapter, we will talk about clustering in general as it applies to cohorts of users, and then introduce K-Means clustering and Expectation Maximization (EM) clustering. Finally, we’ll finish with an example about clustering jazz records into groups based on styles.

Note

The Clustering algorithm is an unsupervised learning problem and is great for grouping data. It can present issues, though, with application to problems; that is, it suffers from the impossibility theorem.

User Cohorts

Grouping people into cohorts (clusters) makes a lot ...

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Thoughtful Machine Learning with Python

Thoughtful Machine Learning with Python

Matthew Kirk
Basiswissen Softwaretest

Basiswissen Softwaretest

Andreas Spillner, Tilo Linz
Build, Borrow, or Buy

Build, Borrow, or Buy

Laurence Capron, Will Mitchell

Publisher Resources

ISBN: 9781449374075Errata Page