graphclust.manifold.tsne#

graphclust.manifold.tsne(X, n_components=2, *, perplexity=30.0, metric='euclidean', random_state=None, **kwargs)[source]#

t-distributed stochastic neighbor embedding (van der Maaten and Hinton 2008) via scikit-learn.

t-SNE converts distances into a sparse affinity graph (Gaussian neighborhoods of fixed perplexity, i.e. effectively a weighted kNN graph) and lays it out with heavy-tailed Student-t similarities; it is the neighbor-embedding method against which UMAP is usually compared. Pass metric="precomputed" to embed geodesic or fuzzy neighborhood distances.