Skip to content

Instantly share code, notes, and snippets.

@tamlyn
Last active December 22, 2020 08:54
Show Gist options
  • Save tamlyn/a9d2b3990f9dab0f82d1dfc1588c876a to your computer and use it in GitHub Desktop.
Save tamlyn/a9d2b3990f9dab0f82d1dfc1588c876a to your computer and use it in GitHub Desktop.
OpenAI Gym CartPole-v1 with Pytorch 1.0
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
appnope==0.1.0
astroid==2.1.0
autopep8==1.4.3
backcall==0.1.0
bleach==3.0.2
certifi==2018.11.29
chardet==3.0.4
cycler==0.10.0
decorator==4.3.0
defusedxml==0.5.0
entrypoints==0.2.3
future==0.17.1
gym==0.10.9
idna==2.7
ipykernel==5.1.0
ipython==7.2.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
isort==4.3.4
jedi==0.13.1
Jinja2==2.10
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.4
jupyter-console==6.0.0
jupyter-core==4.4.0
kiwisolver==1.0.1
lazy-object-proxy==1.3.1
MarkupSafe==1.1.0
matplotlib==3.0.2
mccabe==0.6.1
mistune==0.8.4
nbconvert==5.4.0
nbformat==4.4.0
notebook==5.7.2
numpy==1.15.4
pandas==0.23.4
pandocfilters==1.4.2
parso==0.3.1
pexpect==4.6.0
pickleshare==0.7.5
Pillow==5.3.0
prometheus-client==0.5.0
prompt-toolkit==2.0.7
ptyprocess==0.6.0
pycodestyle==2.4.0
pyglet==1.3.2
Pygments==2.3.0
pylint==2.2.2
pyparsing==2.3.0
python-dateutil==2.7.5
pytz==2018.7
pyzmq==17.1.2
qtconsole==4.4.3
requests==2.20.1
rope==0.11.0
scipy==1.1.0
Send2Trash==1.5.0
six==1.11.0
terminado==0.8.1
testpath==0.4.2
torch==1.0.0
torchvision==0.2.1
tornado==5.1.1
tqdm==4.28.1
traitlets==4.3.2
urllib3==1.24.1
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.4.2
wrapt==1.10.11
@brando90
Copy link

is there a visualization of the Pole and Cart?

@brando90
Copy link

python question. How does the code know what policy is if its not passed in as a variable AND its not at the top of the file? dark magic!

@preet021
Copy link

preet021 commented Nov 6, 2019

is there a visualization of the Pole and Cart?

Use env.render()

@akhilkishoreNT
Copy link

python question. How does the code know what policy is if its not passed in as a variable AND its not at the top of the file? dark magic!

Everything outside a function is a global variable. No need to pass it as variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment