LESSON 15.23 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
n-step returns and TD(λ)
Watch one reward reach back n steps, then fade along a trace.
Needs15.22 Q-learning
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.23 · RL BAYn 4 · G(t0) 0.33 · FULL FROM t5
01
Stage 1 of 6 · n-step return
An n-step return adds 4 rewards, then γ⁴ times the value it reaches. From t5 on, the episode ends first, so nothing is guessed.
Explain it simply
The chips show episode 1, from C at t0 to the right end. Under each chip is its 4-step return. It adds 4 rewards, then trusts the discounted value of the state it reaches. Near the end, the rewards run out first, so no guess is used.
Episode 1 moves C, B, A, B, C, B, C, D, E, then the right end. Its 4-step returns from t0 to t8 are 0.33, 0.33, 0.33, 0.33, 0.33, 0.73, 0.81, 0.90, 1.00.
states and tracesreturns and valuesn and λ weightstrue valueerror
Toy: the 7-state random walk, γ = 0.9, V starts at 0.5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Add n discounted rewards, then a discounted guess from the state reached.
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.