AI & ML Atlas
Reinforcement LearningalgorithmInteractive simulation
Modified Policy Iteration
Policy iteration with only a few evaluation sweeps before each improvement.
The idea
Full policy evaluation is often wasted effort because the policy will change anyway. Running just k evaluation sweeps before improving interpolates between value iteration (k = 1) and policy iteration (k = ∞) and is often the fastest in practice.
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- positive value
- negative value
- best action
Start with a poor policy (always go up) and every value at zero.
- sweep:
- 0
1/13
Each cell shows its estimated value; arrows show the action the policy would take.
Step by step
- 1Run k sweeps of policy evaluation.
- 2Improve the policy greedily.
- 3Repeat until the policy is stable.
Where it is used
Large planning problems where full evaluation is too costly.
Watch out for
The sweep count k is a tuning knob.