LESSON 15.05 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
The agent–environment loop
An agent and an environment trade actions, observations and rewards, one timestep at a time.
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 · 15.05 · RL BAYSTATE CELL 3 · T 0 · π(RIGHT) 0.80
01
Stage 1 of 5 · The loop
The agent reads an observation and picks an action. The environment owns the state and sends back a reward.
Explain it simply
On the left is the agent. On the right is the environment: a corridor with a pit and a goal. The dashed line is the boundary: only an action crosses it from the left. The environment keeps the state. It sends back what the agent sees and a reward.
The agent box shows a policy: right 0.80, left 0.20. The environment box shows 7 cells with the agent in cell 3.
The policy is fixed, not trained.
observation, rewardpolicyaction, returnpenalty, slipboundary, reset, off
Toy: a 7-cell corridor or a 2-armed bandit
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The policy gives each action a chance, given the observation.
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.