pytorch / tutorials

PyTorch tutorials.
https://pytorch.org/tutorials/
BSD 3-Clause "New" or "Revised" License
8.25k stars 4.07k forks source link

💡 [REQUEST] - Port TorchRL `Recurrent DQN` tutorial from pytorch.org/rl to pytorch.org/tutorials #2349

Closed vmoens closed 1 year ago

vmoens commented 1 year ago

🚀 Descirbe the improvement or the new tutorial

For historical reasons, TorchRL privately hosts a bunch of tutorials. We'd like to bring the most significant ones to pytorch tutorials for more visibility.

Here is the tutorial. In RL, we often add a RNN to a model to account for past observations when executing a policy. This of it as this: if your policy just sees a single image when playing a computer game, it will have little context about what is really happening there. If you keep a memory of past events, your performance will drastically improve. This is useful not only in the context of Partially Observable MDPs but more broadly than that.

Storing recurrent values can be tricky, and torchrl brings its own solution to this problem. This tutorial explains this.

Steps:

  1. Port the tutorial from the RL repo to the tutorials repo.
  2. Fix any formatting issues or typos.
  3. Make sure the tutorial follows the tutorial template (template_tutorial.py)
  4. Preserve the original author

Existing tutorials on this topic

No response

Additional context

The tutorial should not require extra dependencies beyond those already present in requirements.txt.

cc @nairbv @sekyondaMeta @svekars @carljparker @NicolasHug @kit1980 @subramen

varksvader commented 1 year ago

/assigntome

svekars commented 1 year ago

This issue has been unassigned due to inactivity. If you are still planning to work on this, you can still send a PR referencing this issue.

xanderex-sid commented 1 year ago

/assigntome

markstur commented 1 year ago

/assigntome