Reduces high-dimensional vectors to 2D or 3D coordinates using UMAP, falling back to PCA (power iteration) when UMAP fails. Output coordinates are normalized into a fixed viewbox so they render consistently.
Project a keyed map of vectors into a keyed map of coordinates.
Map of key -> raw vector.
Number of output dimensions (2 or 3). Defaults to 2.
Map of key -> projected coordinate.
Reduces high-dimensional vectors to 2D or 3D coordinates using UMAP, falling back to PCA (power iteration) when UMAP fails. Output coordinates are normalized into a fixed viewbox so they render consistently.