Skip to main content

Module umap

Expand description

UMAP: uniform manifold approximation and projection.

See the book entry Nonlinear embeddings: t-SNE and UMAP.

Structs§

Umap
UMAP (McInnes, Healy and Melville) builds a weighted fuzzy graph of the data, in which each point is connected to its neighbors nearest points with membership strengths that fall off with distance (measured beyond the nearest neighbour, which locally always connects), and the directed graph is symmetrised by fuzzy union. It then finds a low-dimensional layout whose fuzzy graph is as similar as possible, by stochastic gradient descent: connected points attract each other and randomly sampled points repel. Compared with t-SNE it is faster and keeps more global structure.

Functions§

fit_ab
Fits the smooth curve 1 / (1 + a x^{2b}) to the target similarity profile: 1 up to min_dist and an exponential decay of scale spread beyond it. Levenberg-Marquardt on (a, b).