LESSON 17.08 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
REINFORCE and the policy gradient theorem
Watch REINFORCE learn to balance a pole from its own episodes.
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.08 · POLICY GRADIENT BAYUPDATE 1 · P(RIGHT) AT STEP 0 0.50
01
Stage 1 of 6 · The policy
The policy turns 4 state numbers into the chance to push right. All weights are 0, so it is 0.50.
Explain it simply
The cart rolls on a track with a pole on top. The policy reads four numbers: the cart's place and speed, and the pole's lean and turn speed. Each number has a weight. The policy adds them up and squashes the sum into a chance to push right.
A cart with a pole, and a table of 4 state numbers and 4 weights. The chance to push right is 0.50.
state, pushesweightsgradient, losschance, returns
Toy: the 17.C2 cart-pole, 100-step cap, seed 1708
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The chance to push right is the sigmoid of the weighted state.
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.