Skip to content

Re-enable reinforcement_q_learning tutorial #2067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .jenkins/validate_tutorials_built.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"examples_autograd/polynomial_custom_function",
"forward_ad_usage",
"parametrizations",
"reinforcement_q_learning",
"mnist_train_nas", # used by ax_multiobjective_nas_tutorial.py
"fx_conv_bn_fuser",
"super_resolution_with_onnxruntime",
Expand Down
7 changes: 6 additions & 1 deletion intermediate_source/reinforcement_q_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@

First, let's import needed packages. Firstly, we need
`gym <https://github.com/openai/gym>`__ for the environment
(Install using `pip install gym`).

.. code-block:: bash

%%bash
pip3 install gym[classic_control]

We'll also use the following from PyTorch:

- neural networks (``torch.nn``)
Expand Down
5 changes: 3 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ scikit-image
scipy
pillow==9.0.1
wget
gym==0.24.0
gym-super-mario-bros==7.3.0
gym==0.25.1
gym-super-mario-bros==7.4.0
timm
pygame==2.1.2