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

CartPole

A cart balancing a pole; the dynamics match Gymnasium and are verified in the tests.

Environments library · Implemented and tested Intermediate

Goal

Keep the pole upright as long as possible.

State space

4 continuous values

Action space

Push left or right

Reward function

+1 for every step the pole stays up

Success conditions

500 steps without falling

Failure / termination conditions

Pole falls, cart leaves the track, or 500 steps

How it was tested

Dynamics equal Gymnasium (numerical test).

Suitable algorithms

Interactive experiment

DQN on the real CartPole