Fix readme example, documentation and error messages

This commit is contained in:
Dominik Mueller
2016-04-28 14:01:24 +02:00
parent 0b34c296b1
commit d3d23f3455
5 changed files with 5 additions and 5 deletions

View File

@@ -188,7 +188,7 @@ Toy environments which are text-based. There's no extra dependency to install, s
.. code:: python .. code:: python
import gym import gym
env = gym.make('FrozenLake') env = gym.make('FrozenLake-v0')
env.reset() env.reset()
env.render() env.render()

View File

@@ -7,7 +7,7 @@ from gym import utils
try: try:
import atari_py import atari_py
except ImportError: except ImportError:
raise error.DependencyNotInstalled("{}. (HINT: you can install Atari dependencies with 'pip install gym[atari].)'") raise error.DependencyNotInstalled("{}. (HINT: you can install Atari dependencies with 'pip install gym[atari]'.)")
import logging import logging
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@@ -3,7 +3,7 @@ try:
import pachi_py import pachi_py
except ImportError as e: except ImportError as e:
# The dependency group [pachi] should match the name is setup.py. # The dependency group [pachi] should match the name is setup.py.
raise error.DependencyNotInstalled('{}. (HINT: you may need to install the Go dependencies via "pip install gym[pachi].)"'.format(e)) raise error.DependencyNotInstalled('{}. (HINT: you may need to install the Go dependencies via "pip install gym[pachi]".)'.format(e))
import numpy as np import numpy as np
import gym import gym

View File

@@ -7,7 +7,7 @@ from gym import error, spaces
try: try:
import mujoco_py import mujoco_py
except ImportError as e: except ImportError as e:
raise error.DependencyNotInstalled("{}. (HINT: you need to install mujoco_py, and also perform the setup instructions here: https://github.com/openai/mujoco-py/.)'".format(e)) raise error.DependencyNotInstalled("{}. (HINT: you need to install mujoco_py, and also perform the setup instructions here: https://github.com/openai/mujoco-py/.)".format(e))
BIG=10000 BIG=10000

View File

@@ -71,7 +71,7 @@ class Monitor(object):
to record every 100 episodes. ('count' is how many episodes have completed) to record every 100 episodes. ('count' is how many episodes have completed)
Depending on the environment, video can slow down execution. You Depending on the environment, video can slow down execution. You
can also use 'monitor.configure(video=lambda count: False)' to disable can also use 'monitor.configure(video_callable=lambda count: False)' to disable
video. video.
Monitor supports multiple threads and multiple processes writing Monitor supports multiple threads and multiple processes writing