Unsupervised learning and clustering

Let's quickly review supervised learning with an example. When you are training machine-learning algorithms, you are able to observe and direct the learning by providing labels. Think about the following dataset, where each row indicates a customer and each column represents a different feature such as Age, Gender, Income, Profession, Tenure and City. Take a look at this table:

You may want to perform different kinds of analysis. One of them could be to predict which of the customers is likely to leave, namely, churn analysis. To do that, you need to label each customer based on their history to indicate ...

Get Mastering Numerical Computing with NumPy 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.