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

Rollout buffers and transition records

Watch an agent's steps become records, batches, updates and a checkpoint.


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 · 17.17 · RL BAYRECORD STEP 36 · CELL 0 · LEFT
01
Stage 1 of 6 · One record
Each step writes one transition record: s, a, r and done. It also keeps policy metadata: log μ, h and version v.
Explain it simply

Each column is one step of the agent in the corridor. The top rows say where it stood, which way it moved, what reward it got and whether the episode ended. The rows below keep how likely that move was, the memory h, and the policy version that chose it. Training reads all of them later.

One record: cell 0, action left, reward 0, done no, log probability −1.04, h −0.29, version 3.

recordspolicy and metadatalossweights
cell 0cell 1cell 2cell 3cell 4+1sardonelog μhvthe steppolicy metadatat360←00−1.04−0.293one transition recordcell 0cell 1cell 2cell 3cell 4+1sardonelog μhvthe steppolicy metadatat360←00−1.04−0.293one transition record
Toy: a 5-cell corridor, 48 steps, then 48 more after a checkpoint
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
(st,at,rt,dt)  +  (log⁡μt, ht, vt)\sy{rec}{data}{(s_t, a_t, r_t, d_t)} \;+\; \sy{meta}{param}{(\log\mu_t,\, \sy{h}{data}{h_t},\, v_t)}
log⁡μ=log⁡0.352=−1.04\log\mu = \log 0.352 = -1.04

A record keeps the step and the policy state that made it.

Common mix-ups

MYTHPadded steps do not change a mean loss.

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

Predict, then reveal
3 CHECKS · PRO
Q01With a replay buffer, do all sampled records come from the current policy version?

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.