Reinforcement Learning Lab

Eight reinforcement-learning labs: classical, deep, policy optimisation, bandits, planning and multi-agent, with experiments trained for real in your browser.

39interactive experiments

Reinforcement Learning Lab

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

Algorithms marked “Real” are genuinely trained in your browser with real networks and tables, but in small teaching configurations; their results do not represent research or production performance. The application models (energy, traffic, health, finance…) are educational simulations with synthetic parameters, not medical or financial advice.

Loading experiments…

Lessons

classical

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 lesson
classical

Q-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 lesson
classical

SARSA, 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 lesson
classical

Monte 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 lesson
classical

Exploration 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 lesson
classical

Dyna-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 lesson
classical

TD(λ) 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 lesson

Algorithms in this lab

Algorithms library
AlgorithmFamilyStatus in the labNote
Q-learningValue-basedReal, runs in the browser
SARSAValue-basedReal, runs in the browser
Expected SARSAValue-basedReal, runs in the browser
Double Q-learningValue-basedReal, runs in the browser
Monte Carlo controlValue-basedReal, runs in the browser
TD(λ)Value predictionReal, runs in the browser
Dyna-Qmodel-basedReal, runs in the browser

Environments of this lab

Environments library

Test yourself on this lab · Projects and challenges · My saved experiments