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...
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:
Build a KNN classifier to predict customer segments.
Use K-means clustering to group customers.
Visualize both results using scatter plots. ...