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

Sample-efficiency curves and fair comparisons

See how budgets, checkpoints and tuning change which RL algorithm looks better.


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 · 18.04 · EVALUATION BAYA 0.620 · B 0.637 AT 540 STEPS
01
Stage 1 of 6 · Learning curves
A sample-efficiency curve plots the test score against environment steps. Each point is a mean of 100 runs.
Explain it simply

Each run saves a checkpoint every 60 steps, and each checkpoint plays 10 test episodes. A crashed run keeps its last saved policy, as in 18.01. Two lines show A and B, each a mean over 5 seeds and 20 tasks. The faint band spans the lowest to the highest seed. Any curve that rises sooner learns from fewer steps.

Two rising lines over 60 to 540 steps. A goes from 0.40 to 0.62, and B from 0.43 to 0.64.

tasksbudget, validation, tuningtest peekingtest scores
601201802403003604204805400.400.500.600.70environment stepsmean test scoreA 0.620B 0.637bands: lowest to highest seedlearning curves601201802403003604204805400.400.500.600.70environment stepsmean test scoreA 0.620B 0.637bands: lowest to highest seedlearning curves
Toy: 2 Q-learning algorithms × 5 seeds × 20 corridor tasks
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Gˉ(s)=1100∑runsGtest(s)\sy{G}{out}{\bar G}(\sy{s}{param}{s}) = \tfrac{1}{100} \textstyle\sum_{\text{runs}} \sy{G}{out}{G_{\text{test}}}(\sy{s}{param}{s})
GˉA(540)=0.620, GˉB(540)=0.637\bar G_A(540) = 0.620,\ \bar G_B(540) = 0.637

The curve height at s steps is the mean test score of 100 runs.

Common mix-ups

MYTHThe algorithm with the higher tuned score is the better one.

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

Predict, then reveal
3 CHECKS · PRO
Q01At a budget of 240 steps, which algorithm has the higher mean score?

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.