Skip to content

Classic reinforcement learning, made inspectable

gym_classics2 is a teaching package written in Python covering finite Markov decision processes (MDPs), textbook reinforcement-learning algorithms, and visualization tools. The package focuses on gridworld examples which are implemented as environments using the standard Gymnasium API and also provide full model access for planning algorithms.

Where to begin

Design goals

The implementations favor simple code, correspondence with Sutton and Barto's pseudocode and inspectable intermediate results over framework abstractions. They are intended for experiments, demonstrations, and coursework rather than large-scale reinforcement-learning workloads.