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
import gym
env = gym.make('FrozenLake')
env = gym.make('FrozenLake-v0')
env.reset()
env.render()

View File

@@ -7,7 +7,7 @@ from gym import utils
try:
import atari_py
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
logger = logging.getLogger(__name__)

View File

@@ -3,7 +3,7 @@ try:
import pachi_py
except ImportError as e:
# 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 gym

View File

@@ -7,7 +7,7 @@ from gym import error, spaces
try:
import mujoco_py
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

View File

@@ -71,7 +71,7 @@ class Monitor(object):
to record every 100 episodes. ('count' is how many episodes have completed)
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.
Monitor supports multiple threads and multiple processes writing