pub struct Umap { /* private fields */ }Expand description
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.
min_dist sets how tightly points may pack in the embedding (small values give dense clumps),
and neighbors trades local detail against global structure. This implementation builds the
exact neighbour graph, so it suits up to several thousand points, and initialises the layout
with PCA.