Search⌘ K
AI Features

Coding Exercise: Classify and Cluster Customer Data

Explore how to build a KNN classifier and apply K-means clustering to segment customer data. Learn to visualize customer behavior using scatter plots based on income and spending scores, gaining practical skills for machine learning applications in data science.

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. ...