Log inStart free
LESSON 4.05 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Label noise

Watch flipped labels bend a model, fool its test score, and get caught.


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

Go Pro · $8.25/mo
EXPLAINER · 4.05 · NOISE BAYTRAIN 60 · TEST 60 · 29 B IN TRAINING
01
Stage 1 of 6 · True labels
Each point has two features and a label, A or B. The dashed line sets the true label.
Explain it simply

Each dot is one example with two numbers, like the size and the price of a house. A filled dot has the label A, and a hollow dot has the label B. A hidden rule draws the dashed line: every point above it is B. The model learns from the left plot, and the right plot tests it.

Two plots of 60 points each. Points above the dashed curve have the true label B: 29 in the training set.

point: A filled, B hollowflipped labelmodel, flag and scorek nearest pointshidden rule, dropped point
training set31 A · 29 Bx₁ →x₂ →test set27 A · 33 Bx₁ →x₂ →training set31 A · 29 Bx₁ →x₂ →test set27 A · 33 Bx₁ →x₂ →
Toy: 60 training and 60 test points · 2 features · labels A and B · a k-nearest neighbors model
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
y=B  ⟺  x2>g(x1)=0.5+0.15sin⁡(2πx1)\sy{y}{data}{y} = \text{B} \iff \sy{x}{data}{x_2} > \sy{g}{ink}{g(x_1)} = 0.5 + 0.15 \sin(2\pi x_1)
training: 31 A, 29 B;test: 27 A, 33 B\text{training: } 31\ \text{A},\ 29\ \text{B};\quad \text{test: } 27\ \text{A},\ 33\ \text{B}

A point above the dashed line has the true label B.

Common mix-ups

MYTHThe model that fits every training label is the best one.

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

Predict, then reveal
3 CHECKS · PRO
Q01With 20% uniform noise, which k scores higher on the true test labels?

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 3 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.