Expand description
Embedding space visualization: PCA, t-SNE, UMAP, nearest neighbors.
Structs§
- Embedding
Renderer - Renders embedding points as colored glyphs for 2D visualization.
- Embedding
Space - A collection of embedding vectors with optional labels.
Functions§
- cosine_
similarity - Cosine similarity between two vectors.
- nearest_
neighbors - Find the k nearest neighbors of a query vector, returning (index, similarity).
- pca
- PCA dimensionality reduction via power iteration for top-k eigenvectors.
- tsne
- Simplified t-SNE implementation.
- umap
- Simplified UMAP: approximate using nearest-neighbor graph + force-directed layout.