Files
Gymnasium/docs/index.md
2023-06-12 11:20:44 +01:00

89 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
hide-toc: true
firstpage:
lastpage:
---
```{project-logo} _static/img/gymnasium-text.png
:alt: Gymnasium Logo
```
```{project-heading}
An API standard for reinforcement learning with a diverse collection of reference environments
```
```{figure} _static/videos/box2d/lunar_lander.gif
:alt: Lunar Lander
:width: 500
```
**Gymnasium is a maintained fork of OpenAIs Gym library.** The Gymnasium interface is simple, pythonic, and capable of representing general RL problems, and has a [compatibility wrapper](content/gym_compatibility) for old Gym environments:
```{code-block} python
import gymnasium as gym
env = gym.make("LunarLander-v2", render_mode="human")
observation, info = env.reset(seed=42)
for _ in range(1000):
action = env.action_space.sample() # this is where you would insert your policy
observation, reward, terminated, truncated, info = env.step(action)
if terminated or truncated:
observation, info = env.reset()
env.close()
```
```{toctree}
:hidden:
:caption: Introduction
content/basic_usage
content/gym_compatibility
content/migration-guide
```
```{toctree}
:hidden:
:caption: API
api/env
api/registry
api/spaces
api/wrappers
api/vector
api/utils
api/experimental
```
```{toctree}
:hidden:
:caption: Environments
environments/classic_control
environments/box2d
environments/toy_text
environments/mujoco
environments/atari
environments/third_party_environments
```
```{toctree}
:hidden:
:glob:
:caption: Tutorials
tutorials/**/index
Comet Tutorial <https://www.comet.com/docs/v2/integrations/ml-frameworks/gymnasium/?utm_source=gymnasium&utm_medium=partner&utm_campaign=partner_gymnasium_2023&utm_content=docs_gymnasium>
```
```{toctree}
:hidden:
:caption: Development
Github <https://github.com/Farama-Foundation/Gymnasium>
gymnasium_release_notes/index
gym_release_notes/index
Contribute to the Docs <https://github.com/Farama-Foundation/Gymnasium/blob/main/docs/README.md>
```