๐Ÿ”ต Unsupervised Learning

Cluster Explorer

Drop data points onto a canvas, choose K, and watch the K-Means algorithm magically group them into clusters โ€” step by step, iteration by iteration!

๐ŸŽจ Add Points
๐ŸŽฏ Place Centroids
โšก Watch Clustering
๐Ÿ“Š Elbow Method
๐Ÿ† Badge

How K-Means Clustering Works

๐Ÿ“

1. Place Centroids

Pick K random "centroid" points โ€” one for each cluster you want to find.

๐ŸŽจ

2. Assign Points

Colour every data point by its nearest centroid โ€” that's its cluster!

๐Ÿ“

3. Move Centroids

Shift each centroid to the average position of all points in its cluster.

๐Ÿ”

4. Repeat Until Still

Keep assigning & moving until centroids stop moving โ€” that's convergence!

๐Ÿ”ต
Wizzy the AI Tutor
Welcome to Cluster Explorer! ๐ŸŽ‰ K-Means finds hidden groups in data โ€” without any labels! First, let's create a dataset. Click or drag on the canvas to drop data points. Or pick a preset dataset. Can you create 3 clear groups?

Step 1 โ€” Create Your Dataset

0 points
Presets:
๐Ÿ’ก Click anywhere to add a point ยท Click & drag to paint multiple

๐Ÿ“Š Dataset Info

Total points0
Canvas area480 ร— 400
6
๐Ÿ”ต
Wizzy the AI Tutor
Now choose K โ€” the number of clusters! Look at your data and guess how many groups there are. Then you can click on the canvas to manually place your starting centroids, or let the algorithm pick them randomly!

Step 2 โ€” Choose K & Place Centroids

๐Ÿ’ก Click to place K centroid(s) โ€” or use Random Init

๐ŸŽฏ Centroid Setup

K (clusters)3
Placed0 / 3
๐Ÿ”ต
Wizzy the AI Tutor
Watch the magic! โœจ Click "Step" to see each assignment and centroid-move separately, or "Auto Run" to watch it converge automatically. The โ˜… stars are centroids โ€” watch them drift toward the centre of their clusters!

Step 3 โ€” K-Means in Action

0
Iterations
โ€”
Current Phase
Ready
Status
โ€”
Inertia (WCSS)
Press Step to begin the first assignment phase, or Auto Run to watch the full algorithm!

๐Ÿ“Š Clustering Stats

Iteration0
Total pointsโ€”
Inertia (WCSS)โ€”
Centroid shiftโ€”
Converged?No
3

๐Ÿ“‰ Inertia over Iterations

๐Ÿ”ต
Wizzy the AI Tutor
But how do you choose the right K? The Elbow Method runs K-Means for K=1 to 8 and plots the inertia. The "elbow" bend is where adding more clusters stops helping much. Can you spot the elbow in your data?

Step 4 โ€” The Elbow Method

๐Ÿ” Elbow Analysis

Best K (suggested)โ€”
Your chosen Kโ€”
Data pointsโ€”
๐Ÿ”ต
Wizzy the AI Tutor
๐ŸŽŠ You've just run the same algorithm used in Spotify playlist grouping, customer segmentation, image compression, and medical diagnosis! K-Means is one of the most powerful unsupervised learning tools. You are now a Clustering Scientist! ๐ŸŒŸ
๐Ÿ”ต

Clustering Scientist Badge!

You ran K-Means clustering and used the Elbow Method. Enter your name for your certificate!

๐Ÿ”ต WhizzStep AI Lab
This certifies that
Student Name
has mastered K-Means Clustering & Unsupervised Learning
K-Means Master
Elbow Expert
Cluster Scientist
Clustered โ€” points ยท K=โ€” ยท whizzstep.in

Key Concepts You've Mastered

Unsupervised Learning

๐Ÿ”“ No Labels Needed

Unlike classification, clustering finds patterns in data without any predefined categories or labels.

Centroid

โญ The Cluster Centre

A centroid is the mathematical average position of all points in a cluster. It moves each iteration.

Inertia (WCSS)

๐Ÿ“ Cluster Tightness

Within-Cluster Sum of Squares. Measures how spread out points are within each cluster.

Elbow Method

๐Ÿ’ช Choosing K

Plot inertia for K=1..8. The "elbow" bend shows where adding more clusters gives diminishing returns.

Convergence

๐Ÿ›‘ When It Stops

K-Means converges when centroids stop moving โ€” the clusters have stabilised into a final answer.

Real World Uses

๐ŸŒ Where It's Used

Spotify playlists, customer groups, image compression, medical diagnosis, news grouping, and more!