gym  by openai

RL toolkit for reinforcement learning algorithm development

created 9 years ago
36,298 stars

Top 0.9% on sourcepulse

GitHubView on GitHub
Project Summary

Gym provides a standard API for developing and comparing reinforcement learning algorithms, serving as a foundational toolkit for researchers and practitioners in the RL field. Its core contribution is a consistent interface for interacting with diverse environments, simplifying algorithm development and benchmarking.

How It Works

Gym models environments as Python classes, offering a straightforward API for interaction. Algorithms send actions to the environment and receive observations, rewards, and termination signals. This abstraction decouples algorithms from environment specifics, promoting code reusability and enabling standardized comparisons across different RL algorithms and environments.

Quick Start & Requirements

Highlighted Details

  • Standardized API for RL environments, widely adopted in the research community.
  • Strict environment versioning (_v0, _v1, etc.) ensures reproducibility.
  • Supports optional dependencies for various environment families like Atari and MuJoCo.
  • Future MuJoCo environments will use mujoco instead of mujoco-py.

Maintenance & Community

Gym is no longer actively maintained; all future development has moved to Gymnasium, a drop-in replacement. Users are strongly advised to migrate.

Licensing & Compatibility

MIT License. Compatible with commercial and closed-source applications.

Limitations & Caveats

Gym is in maintenance mode and will not receive future updates. The project strongly recommends migrating to Gymnasium for ongoing support and development. Windows is not officially supported.

Health Check
Last commit

9 months ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
0
Star History
532 stars in the last 90 days

Explore Similar Projects

Starred by Thomas Wolf Thomas Wolf(Cofounder of Hugging Face), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
2 more.

Gymnasium by Farama-Foundation

0.5%
10k
Python API standard for single-agent reinforcement learning environments
created 2 years ago
updated 1 week ago
Feedback? Help us improve.