Classical RL
Q-learning, SARSA, Expected SARSA, Monte Carlo, temporal differences and Dyna-Q: Q table, V and policy views, with α, γ and ε sliders and a Q-learning vs SARSA comparison.
- 9Experiments
- 7Lessons
- 7Algorithms
Loading experiments…
Lessons
Temporal-difference learning
TD updates the value estimate after every step using the estimate of the next state (bootstrapping) instead of waiting for the end of the episode.
Read the lessonQ-learning
Q-learning learns Q* directly from experience: it follows an exploratory behaviour policy but its target uses the best action in the next state.
Read the lessonSARSA, Expected SARSA and on-policy learning
SARSA uses the action that will really be executed in the next state, so it evaluates the policy it is following, exploration included.
Read the lessonMonte Carlo methods
MC learns from complete episodes: after the end it computes the actual return of each state or pair and updates its average.
Read the lessonExploration versus exploitation
If the agent only exploits what it knows it may stick to a good but suboptimal behaviour; if it always explores it does not benefit from what it learned.
Read the lessonDyna-Q: learning with a model
Dyna-Q learns a simple model from experience (what each (s,a) yields) and, after every real step, performs n "imagined" updates from the model.
Read the lessonTD(λ) and eligibility traces
Eligibility traces keep a fading record of recently visited states, so the current TD error is spread over several earlier states instead of one.
Read the lessonAlgorithms in this lab
Algorithms library| Algorithm | Family | Status in the lab | Note |
|---|---|---|---|
| Q-learning | Value-based | Real, runs in the browser | |
| SARSA | Value-based | Real, runs in the browser | |
| Expected SARSA | Value-based | Real, runs in the browser | |
| Double Q-learning | Value-based | Real, runs in the browser | |
| Monte Carlo control | Value-based | Real, runs in the browser | |
| TD(λ) | Value prediction | Real, runs in the browser | |
| Dyna-Q | model-based | Real, runs in the browser |
Environments of this lab
Environments libraryTest yourself on this lab · Projects and challenges · My saved experiments
