LESSON 16.04 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Snapshots, cloning and replay
Save an environment's state, restore a clone, and replay the same actions.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 16.04 · REPLAY BAYRUN A · GOAL AT STEP 9 · REWARD 1.6
01
Stage 1 of 5 · Run A
Run A moves right and reaches the goal at step 9. Each step draws an RNG number; below 0.25, it slips.
Explain it simply
The top grid is run A. Each column is one step, and the dot shows the agent's cell. Each step reads the state, draws one random number and writes a new state. The step depends only on the state and the action, so it can be replayed.
Run A: cells 0, 0, 1, 2, 3, 4, 5, 5, 6. It reaches the goal at step 9 with a total reward of 1.6. The table shows its state after step 2.
run A and its statesnapshotclone Bmismatches, hidden stateslip or blocked step
Toy: a 7-cell corridor, seed 7, 10-step budget
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The next state and the reward depend on the state and the action only.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 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.