gym
by
openai

Description: A toolkit for developing and comparing reinforcement learning algorithms.

View on GitHub ↗

Summary Information

Updated 42 minutes ago
Added to GitGenius on April 23rd, 2023
Created on April 27th, 2016
Open Issues & Pull Requests: 128 (+0)
Number of forks: 8,693
Total Stargazers: 37,247 (+0)
Total Subscribers: 1,038 (+0)

Issue Activity (beta)

Open issues: 79
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 873 days
Stale 30+ days: 79
Stale 90+ days: 79

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • stale (55)
  • mujoco (31)
  • more-information-needed (7)
  • question (5)
  • PR Needed (4)
  • help wanted (4)
  • enhancement (3)
  • bug (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Repository Insights (GitGenius)

Median issue/PR response: 2686.8 days
Mean response time: 2321.3 days
90th percentile: 3341.5 days
Tracked items: 277

Most active contributors

Detailed Description

Gym is an open source Python library developed by OpenAI that provides a toolkit for developing and comparing reinforcement learning algorithms. The library establishes a standard API for communication between learning algorithms and simulation environments, along with a comprehensive suite of pre-built environments that comply with this API. Since its release, Gym's API has become the field standard for reinforcement learning research and development, making it a foundational tool in the machine learning community.

The core purpose of Gym is to standardize how reinforcement learning algorithms interact with training environments. Rather than requiring researchers to build custom interfaces for each new environment, Gym provides a unified Python API where environments are implemented as simple classes. Users can create environment instances and interact with them through a consistent interface, as demonstrated in the library's documentation with examples like the CartPole-v1 environment. This standardization dramatically reduces friction when implementing, testing, and comparing different reinforcement learning algorithms.

Gym supports Python versions 3.7 through 3.10 on Linux and macOS, with community contributions accepted for Windows support though it is not officially supported. Installation is straightforward through pip, with the base library available via pip install gym. The library offers optional dependency groups for different environment families, allowing users to install only what they need or use pip install gym[all] for complete functionality. MuJoCo environments, a particularly important category for physics-based simulations, have transitioned from the mujoco-py dependency to the mujoco package in recent versions, with older versions remaining available but unmaintained.

A critical aspect of Gym's design is its strict environment versioning system. All environments include version suffixes like _v0, _v1, and so forth. When changes are made to environments that could impact learning results, the version number increments, ensuring reproducibility and preventing confusion when comparing experimental results across different versions.

According to GitGenius activity tracking, the repository has experienced significant engagement with 277 tracked issues and pull requests. The median response latency for these items is approximately 64,482 hours, with a mean of 55,711 hours, reflecting the repository's maturity and the time investment required for thorough review in a research-focused project. The most active labels tracked include stale issues (16 occurrences), MuJoCo-related items (7 occurrences), and help wanted requests (2 occurrences). Key contributors include pseudo-rnd-thoughts with 29 tracked events, w1463442883 with 8 events, and colinrgodsey with 7 events.

However, the repository is currently in a transitional phase. The team maintaining Gym since 2021 has moved all future development to Gymnasium, a drop-in replacement available at the Farama Foundation. The README explicitly states that Gym will not receive future updates, and users are encouraged to migrate to Gymnasium, which maintains API compatibility through the import statement import gymnasium as gym. This transition reflects the evolution of the reinforcement learning ecosystem and the community's decision to consolidate development efforts under the Farama Foundation's stewardship.

gym
by
openaiopenai/gym

Repository Details

Fetching additional details & charts...