Tensorium

tensor + the -arium of aquarium, planetarium: a place where you observe tensors flowing. Playful and distinctive.

Clustering

Four ways to find groups in unlabeled data. Every page runs live in the browser — click to place points, step the algorithm one move at a time, and see exactly where each one succeeds and where it breaks.

K-Means

Place the centroids yourself, then alternate two steps: reassign every point to its nearest centroid, move every centroid to the mean of its points. Watch J fall — and watch it settle on the wrong answer when the clusters are not round.

Hierarchical Clustering

Start with every point its own cluster and merge the closest pair, over and over, until one remains. Compare single, complete and average linkage, then cut the tree by cluster count or by height.

DBSCAN

Cluster by density instead of distance to a center. Set ε and minPts, and the algorithm grows clusters of any shape from their core points — and labels whatever is left over as noise.

Gaussian Mixture Models

Soft clustering. Each cluster is an ellipse with its own size and tilt, and each point gets a probability of belonging rather than a label. Step through the E-step and M-step by hand.