PPolySim OS
For Hobbyists & Makers · k-Means Clustering

k-Means Clustering for a neural network

Built for hobbyists & makers exploring it for fun. Play with real physics and math, no license and no setup — just open and tinker. Simulate a neural network live below — adjust the inputs and watch it respond, right in your browser.

k-Means ClusteringLive

Controls

Presets

Lloyd's algorithm: assign each point to its nearest centroid, then move each centroid to the mean of its members. Repeat until stable. Try setting k different from the true cluster count.

▶ Run in Python

Data Inspector

Iteration0
Inertia0.00e+0
k4

Governing equation

Reading this result: k matches the 4 true clusters, so each centroid can settle onto one real group and inertia falls to a clean minimum.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with k-Means Clustering

Frequently asked questions

Is this good for hobbyists & makers?
Yes — this version of "k-Means Clustering for a neural network" is framed for hobbyists & makers exploring it for fun. Play with real physics and math, no license and no setup — just open and tinker.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.