AI & ML Atlas
Machine LearningalgorithmAnimated walkthrough
t-SNE
Draws high-dimensional data in 2-D so that neighbours stay neighbours.
The idea
It turns distances between points into neighbour probabilities in the original space and in the 2-D map, then moves the map points until the two sets of probabilities match, using gradient descent on a KL divergence. A heavy-tailed Student-t distribution in the map lets clusters separate clearly.
minimise KL(P ‖ Q)
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Compute pairwise neighbour probabilities in the original space (set by perplexity).
- 2Place points randomly in 2-D.
- 3Compute neighbour probabilities in 2-D with a t-distribution.
- 4Move the points to reduce the KL divergence between the two.
- 5Repeat for many iterations.
minimise KL(P ‖ Q)
1/5
Step by step
- 1Compute pairwise neighbour probabilities in the original space (set by perplexity).
- 2Place points randomly in 2-D.
- 3Compute neighbour probabilities in 2-D with a t-distribution.
- 4Move the points to reduce the KL divergence between the two.
- 5Repeat for many iterations.
Where it is used
Visualising embeddings and cell populations.
Watch out for
Cluster sizes and distances between clusters are not meaningful; results depend on perplexity and the random start.