Search⌘ K
AI Features

Coding Exercise: Classify and Cluster Customer Data

Explore how to classify and cluster customer data by building a KNN classifier and applying K-means clustering. Understand how to visualize these segments using scatter plots to analyze customer behavior based on income and spending patterns.

We'll cover the following...

Scenerio

Imagine you’re a data scientist at an e-commerce company. You’re given customer data and need to:

  1. Build a KNN classifier to predict customer segments.

  2. Use K-means clustering to group customers.

  3. Visualize both results using scatter plots. ...