M7 module 7 of 08
Customer Segmentation
Groups shoppers by age, income and spending with K-Means, names each segment and suggests an offer for it. The dashboard replays the algorithm step by step, with a live elbow chart and a rotatable 3D view.
- status
- live
- shipped
- Nov 2026
- stack
- Python, FastAPI, scikit-learn, Chart.js
- built by
- somyajeet singh, end to end

01 End to end
From the first sketch to a URL people use.
-
01 Design
what it should feel like
- not part of this one
-
02 Interface
what people touch
- Chart.js
-
03 Logic & data
what makes it work
- Python
- FastAPI
-
04 Pipeline
how it gets out
- scikit-learn
- deploy to GitHub Pages
-
05 Live
where it runs
- somyacodes07.github.io/customer-segmentation-kmeans
02 What it does
The parts worth a closer look.
- 01
K-Means with elbow and silhouette analysis
- 02
Animated step-by-step replay of the clustering
- 03
3D segment view; works fully offline
03 On screen