Skip to content
StackDecode
AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough

Model-Free Reinforcement Learning

Learns values or policies directly from experience, with no model of the environment.

The idea

Q-learning, SARSA and policy gradients never try to predict the next state; they just learn from observed transitions. It is simpler and less affected by model error, but typically needs much more data than model-based approaches.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Interact with the environment.
  2. 2Use the observed reward and next state to update a value function or policy.
  3. 3Never build or use a transition model.
  4. 4Repeat.
1/4

Step by step

  1. 1Interact with the environment.
  2. 2Use the observed reward and next state to update a value function or policy.
  3. 3Never build or use a transition model.
  4. 4Repeat.

Where it is used

Games, simulators with cheap data, and tasks that are hard to model.

Watch out for

Sample-hungry: it often needs millions of interactions, which is costly outside a simulator.

Related