Python API standard for single-agent reinforcement learning environments
Top 5.2% on sourcepulse
Gymnasium provides a standardized API for single-agent reinforcement learning environments, serving as a successor to OpenAI's Gym. It offers a comprehensive suite of reference environments and utilities, enabling consistent development and comparison of RL algorithms for researchers and practitioners.
How It Works
Gymnasium models environments as Python classes, abstracting the interaction loop into simple reset()
and step()
methods. This design promotes interoperability between diverse RL algorithms and environments, facilitating reproducible research and easier algorithm benchmarking. The library enforces strict environment versioning (e.g., "-v0") to ensure reproducibility.
Quick Start & Requirements
pip install gymnasium
pip install "gymnasium[atari]"
or pip install "gymnasium[all]"
Highlighted Details
Maintenance & Community
Maintained by the Farama Foundation, the project actively coordinates development on Discord. Financial contributions are welcomed to support ongoing development.
Licensing & Compatibility
The library is released under the Apache 2.0 license, permitting commercial use and integration with closed-source projects.
Limitations & Caveats
While Gymnasium supports Linux and macOS, official support for Windows is limited to PR acceptance. Some environment dependencies may be challenging to install on certain systems.
1 week ago
Inactive