Expand description
§holomap — deterministic UMAP
The bulk, on the boundary. The holographic principle says the
information of an N-dimensional volume can be encoded on its
(N−1)-dimensional surface. holomap does that for your data:
UMAP-class dimensionality reduction with one non-negotiable contract —
Same input + same params + same seed → bit-identical embedding (on the same platform/toolchain; cross-platform runs are structurally identical, with floats differing at ULP level).
There is no unseeded constructor. By design, none will ever exist.
§Validation
Every stage is parity-verified against the references: exact kNN + fuzzy
simplicial set vs umap-learn 0.5.12 fixtures, spectral initialization
(dense + Lanczos eigensolvers) vs scipy, and the end-to-end embedding vs
umap-learn’s trustworthiness(k=15) on blobs and swiss roll (within 0.05;
swiss roll edges the reference). The determinism gate byte-compares
fit_transform double-runs in CI.
§Quick start
use holomap::Holomap;
// 40 points on a noisy 4-d lattice, row-major
let data: Vec<f32> = (0..160).map(|i| (i % 7) as f32 + 0.01 * i as f32).collect();
let embedding = Holomap::builder(42) // seed is REQUIRED — by design
.n_neighbors(5)
.fit_transform(&data, 4)
.unwrap();
assert_eq!(embedding.len(), 40 * 2); // n_components defaults to 2Structs§
- Holomap
- Configured reducer. Construct via
Holomap::builder. - Holomap
Builder - Builder — every field has a reference-default except the seed, which is the required entry argument.
Enums§
- Holomap
Error - Everything
Holomap::fit_transformcan reject. - Init
- Initialization strategy for the embedding.
- Metric
- Distance metric for the kNN stage.
Constants§
- DETERMINISM_
CONTRACT - The contract, stated as a constant since commit one. The real enforcement
is the end-to-end double-run test on
Holomap::fit_transformplus the CI determinism job (full test suite twice).