LESSON 15.20 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Temporal-difference learning
Watch each move of a random walk correct a guess with the next guess.
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/moEXPLAINER · 15.20 · RL BAYEPISODE 1 · 9 MOVES · LAST TARGET 1.000
01
Stage 1 of 6 · TD target
Each move gets a TD target: its reward plus γ times the next guess, V(S′). Using a guess this way is bootstrapping.
Explain it simply
The strip shows episode 1, the same walk as in Monte Carlo. Under each move sits its target. The last move pays 1, and the end has no future, so its target is 1. Every other move pays 0 and lands on a guess of 0, so its target is 0.
Targets of the 9 moves of episode 1: 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 1.000.
statestargets and valuesTD errorstrue valueother step sizes, Monte Carlo
Toy: the 7-state random walk, γ = 0.9, seeded episodes
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The target is the reward plus the discounted next guess.
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.