mathlib — ML

K-means, PCA, SVM, DBSCAN. ← Back to hub

Clustering

1 K-means 2D / 3D

Clustering with centroids and labels from WASM.

—
2D scatter: points and centroids
Decompositions

2 PCA 2D

PCA with 2 components; mean, explained variance, projected scatter.

—
2D scatter: projected data
Classification

3 SVM 2D (Linear / RBF)

Binary classification with linear or RBF kernel.

—
2D scatter: points and decision line
Clustering

4 DBSCAN

Density-based clustering; noise shown as open circles.

—
2D scatter: clusters and noise