LESSON 16.22 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Wrappers and wrapper ordering
Four wrappers change what an agent sees, does and earns, and their order matters.
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 · 16.22 · RL BAY4 WRAPPERS · REPEAT 2 · LIMIT 8
01
Stage 1 of 6 · The stack
Four wrappers sit around the track. Each one changes one channel: observation, reward, action or episode end.
Explain it simply
On the left is the agent. On the right is the track, the base environment. Each box between them is a wrapper, an environment that holds another one and changes one part of it.
The stack, outermost first: ScaleObs, ClipReward, ActionRepeat, TimeLimit, Track. The agent talks only to ScaleObs.
wrappersaction, agent reward, passed testraw rewards, observationnegative reward, failed test
Toy: a 20-cell coin track under 4 wrappers; the policy always moves right
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each wrapper calls the one inside it and changes one channel.
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.