jon.recoil.org

PCA and kNN for Bigarrays

PCA dimensionality reduction and k-nearest-neighbours classification for float32 Bigarray data. Pure OCaml with no external dependencies.

Used by the tessera pipeline to reduce high-dimensional satellite embeddings to 2–3 components for visualization, and to classify pixels against labelled training data.