Created
August 3, 2018 14:54
-
-
Save jagill/5aa64abac2d9bc81ec1d16ab4fa7ee1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 $ python train.py | |
WARN: gym.spaces.Box autodetected dtype as <class 'numpy.float32'>. Please provide explicit dtype. | |
WARN: You are calling 'step()' even though this environment has already returned done = True. You should always call 'reset()' once you receive 'done = True' -- any further steps are undefined behavior. | |
Exception ignored in: <function Viewer.__del__ at 0x119f546a8> | |
Traceback (most recent call last): | |
File "/Users/jagill/.envs/gym/lib/python3.7/site-packages/gym/envs/classic_control/rendering.py", line 143, in __del__ | |
File "/Users/jagill/.envs/gym/lib/python3.7/site-packages/gym/envs/classic_control/rendering.py", line 62, in close | |
File "/Users/jagill/.envs/gym/lib/python3.7/site-packages/pyglet/window/cocoa/__init__.py", line 281, in close | |
File "/Users/jagill/.envs/gym/lib/python3.7/site-packages/pyglet/window/__init__.py", line 770, in close | |
ImportError: sys.meta_path is None, Python is likely shutting down | |
0 $ python --version | |
Python 3.7.0 | |
0 $ pip freeze | |
appnope==0.1.0 | |
backcall==0.1.0 | |
certifi==2018.4.16 | |
chardet==3.0.4 | |
decorator==4.3.0 | |
future==0.16.0 | |
gym==0.10.5 | |
idna==2.7 | |
ipython==6.5.0 | |
ipython-genutils==0.2.0 | |
jedi==0.12.1 | |
numpy==1.15.0 | |
parso==0.3.1 | |
pexpect==4.6.0 | |
pickleshare==0.7.4 | |
prompt-toolkit==1.0.15 | |
ptyprocess==0.6.0 | |
pyglet==1.3.2 | |
Pygments==2.2.0 | |
requests==2.19.1 | |
simplegeneric==0.8.1 | |
six==1.11.0 | |
traitlets==4.3.2 | |
urllib3==1.23 | |
wcwidth==0.1.7 | |
# System: MacOS High Sierra 10.13.5 (17F77) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gym | |
env = gym.make('CartPole-v0') | |
env.reset() | |
for _ in range(1000): | |
env.render() | |
env.step(env.action_space.sample()) # take a random action |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment