Skip to content
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

Reinforcement Learning Template - #276

Draft
theory-in-progress wants to merge 8 commits into
pytorch-ignite:mainfrom
theory-in-progress:template-reinforcement-learning
Draft

theory-in-progress wants to merge 8 commits into
pytorch-ignite:mainfrom
theory-in-progress:template-reinforcement-learning

Conversation

@theory-in-progress

Copy link
Copy Markdown
Contributor
  • Added 2 algorithms for Reinforcement Learning: REINFORCE and Advantage Actor Critic (A2C)
  • The Algorithms are implemented for the OpenAI Gym env: CarRacing-v2

- Added 2 algorithms for Reinforcement Learning: REINFORCE and
    Advantage Actor Critic (A2C)
- The Algorithms are implemented for the OpenAI Gym env: CarRacing-v2
@netlify

netlify Bot commented Jul 12, 2023 •

Copy link
Copy Markdown

✅ Deploy Preview for code-generator ready!

Name Link
🔨 Latest commit 7619b24
🔍 Latest deploy log https://app.netlify.com/sites/code-generator/deploys/64e8c4c8f8a2520007124734
😎 Deploy Preview https://deploy-preview-276--code-generator.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@theory-in-progress
theory-in-progress marked this pull request as draft July 12, 2023 16:58
eps = np.finfo(np.float32).eps.item()


class ActorCriticNetwork(nn.Module):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@theory-in-progress @vfdev-5 I think it would be better if we define the network in a separate file so that it can be edited easily. Also I was looking at torchrl and I think it provides some abstactions over the contents of ActorCriticNetwork. Should we use it ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, good point, I was also once thinking about torchrl and that we could use it. Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants