Log inStart free
LESSON 4.35 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

t-SNE

Watch t-SNE turn 120 points on a rolled-up 3-D sheet into a 2-D map.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.35 · MAP BAY120 POINTS · A10–D8 6.2 STRAIGHT · 51.1 ALONG
01
Stage 1 of 6 · Rolled-up sheet
120 points in 4 clusters lie on a rolled-up sheet, a manifold in 3-D. A and D are close only across the gap.
Explain it simply

Each dot is one example with three numbers, so it sits in 3-D space. All 120 dots lie on one sheet, rolled up like a carpet. A surface like that is called a manifold. The red line jumps the gap from A10 to D8: 6.2 long, but 51.1 along the sheet.

A rolled-up sheet in 3-D holds 4 clusters of 30 points: A, B, C and D. Each cluster is a band across the sheet. A dashed line joins A10 and D8 across the gap, 6.2 long. The path along the sheet is 51.1.

3-D point, odds Pring σ, P × 12map point, odds Qshortcut, KL lossthe sheet
3-D data2-D map6.2 straight51.1 along the sheetA10D8ABCD3-D data2-D map6.2 straight51.1 along the sheetA10D8ABCD
Toy: 4.C4's 120 points on a Swiss roll · exact t-SNE
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
dij=∥xi−xj∥≪sij\sy{d}{grad}{d_{ij}} = \lVert \sy{x}{data}{x_i} - \sy{x}{data}{x_j} \rVert \ll \sy{s}{data}{s_{ij}}
dA10,D8=6.24≪sA10,D8=51.1d_{A10,D8} = 6.24 \ll s_{A10,D8} = 51.1

The straight gap is far shorter than the path along the sheet.

Common mix-ups

MYTHA bigger clump in the map means a wider cluster.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01At perplexity 8, does the ring of A10 still reach cluster D?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 2 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.