somyacodes

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
fig. 1somyacodes07.github.io/customer-segmentation-kmeans
Customer Segmentation screenshot

01 End to end

From the first sketch to a URL people use.

  1. 01 Design

    what it should feel like

    • not part of this one
  2. 02 Interface

    what people touch

    • Chart.js
  3. 03 Logic & data

    what makes it work

    • Python
    • FastAPI
  4. 04 Pipeline

    how it gets out

    • scikit-learn
    • deploy to GitHub Pages
  5. 05 Live

    where it runs

    • somyacodes07.github.io/customer-segmentation-kmeans

02 What it does

The parts worth a closer look.

  1. 01

    K-Means with elbow and silhouette analysis

  2. 02

    Animated step-by-step replay of the clustering

  3. 03

    3D segment view; works fully offline

03 On screen

Screens from the build.