Giter Club home page Giter Club logo

gym-docs's Introduction

Gym-docs

This library used to house the documentation website for Gym. Gymnasium is the maintained fork of Gym, and the documentation has been merged into that repo. This repo is functionally archived and will no longer be recieving new changes or bug fixes

gym-docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gym-docs's Issues

Problem with rendering

I am trying to create a Q-learning agent I am having a problem with rendering the environment. I want to render the environment every thousand episodes but due to env.reset() calling render internally the rendering is continuous and the training is so slow.

vector_api VectorEnv incorrect

Part of the VectorEnv subsection in the API Reference section is incorrect. See everything between ### VectorEnv and ### Reset

[Proposal] Custom tutorials

With a number of the new features coming to environment, I think it would make sense for us to have our own custom tutorials for these features. Otherwise we are waiting for other authors to do the work that we understand best already

Discussion: Changes to API Page

I believe that the first code snippet in the "Interacting with the Environment" section of the API page is quite important because it serves to illustrates how gym is supposed to be used. I think there are a few changes that could make some points a bit clearer at a quick glance.

  • The output of step should be assigned to variables with meaningful names
  • Seeding should be demonstrated
  • The environment should be reset after a done signal has been emitted

Therefore, I would suggest something like this:

import gym

env = gym.make("CartPole-v0")
env.seed(42)
observation = env.reset()

for _ in range(1000):
  env.render()
  observation, reward, done, info = env.step(env.action_space.sample())

  if done:
    observation = env.reset()
env.close()

This snippet would demonstrate all essential methods of the API.
Of course, the animation won't be as pretty as the current one, but I think this snippet would do a better job of illustrating the usage of gym.

I would also suggest that each method is covered in a small subsection that covers parameters, effects and return values.

One thing that was quite unclear to me when I started using gym was how to tell whether a done signal was generated by the environment or a time limit. This is quite important in many RL algorithms, e.g. SAC. Although one might cover this in the Wrappers section, I think it is worth mentioning in the API section as well.

Links in "Third Party Environments" are not clickable

As the title says, the links are not clickable. This would probably be quite an annoyance.
They seem to be bare links that would work in normal Markdown. The problem could be fixed by using [<url>](<url>). However, I'm not raising a pull request yet in case anybody knows whether this can be fixed globally through changes to some configuration.

Python Indentation is inconsistent

The documentation is partly in 2 and 4 space intent.

It would be better if it would be consistently. Would make copying examples easier, too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.