Gymnasium
Gymnasium (https://gymnasium.farama.org/) – a fork and the official successor of OpenAI Gym – is an open source library that was written to allow access to a standardized set of reinforcement learning tasks. It provides a toolkit that can be used to compare and develop reinforcement learning algorithms.
Gymnasium consists of a collection of environments, all presenting a common interface called env
. This interface decouples the various environments from the agents, which can be implemented in any way we like – the only requirement from the agent is that it can interact with the environment(s) via the env
interface. This will be described in the next subsection.
The basic package, gymnasium
, provides access to several environments and can be installed as follows:
pip install gymnasium
To allow us to render and animate our test environments, the PyGame library needs to be installed as well. This can be done using the following command:
pip...