LESSON 17.05 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Prioritized replay
Watch a DQN pick the transitions with the largest errors more often.
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 · 17.05 · REPLAY BAYMAX |δ| 1.12 · 834 OF 1,000 BELOW 0.05
01
Stage 1 of 6 · The buffer
The replay buffer holds 1,000 transitions, oldest on the left. Each bar is one TD error.
Explain it simply
Each thin bar is one step the agent took. Its height shows how wrong the network is about that step. 834 of the 1,000 bars are below 0.05. The tallest bar is the move from cell 7 to P. A random pick mostly lands on bars that teach little.
1,000 bars, one per stored transition. 834 TD errors are below 0.05. The largest is −1.12, from cell 7 to P.
transitions, picksα, β, IS weightsTD errors, pitpriorities, Q error
Toy: the 17.C1 grid game, a buffer of 1,000, 16 picks per update, 6,000 steps
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The TD error is the target minus the current Q-value.
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.