← 🧠 Machine Learning

🧩 Clustering Lab

Dataset shape
Highlight anomalies
Project to 2D (PCA)
Iteration: 0
Inertia (SSE):
Anomalies: 0
Status: Running
FPS:
Drag — rotate · Scroll — zoom

🧩 Unsupervised Learning and Clustering

A cloud of unlabelled 3D points gets grouped live by the k-means algorithm — watch centroids chase their assigned points, outliers get flagged as anomalies, and the whole cloud flatten onto a lower-dimensional plane.

🔬 What It Demonstrates

K-means alternates an assignment step (color each point by its nearest centroid) and an update step (move each centroid to the mean of its points) until the groupings stop changing — the core loop behind most clustering algorithms.

🎮 How to Use

Pick how many clusters to fit and which dataset shape to fit them to, then watch it converge automatically, or step through iterations by hand. Toggle anomaly highlighting and the PCA-style flattening to see two more unsupervised techniques.

💡 Did You Know?

K-means always carves space into round, convex regions, so it fails badly on shapes like the "two moons" preset — a classic illustration of why algorithm choice matters as much as the data itself.