Reinforcement Learning Template#276
Draft
theory-in-progress wants to merge 8 commits intopytorch-ignite:mainfrom
Draft
Reinforcement Learning Template#276theory-in-progress wants to merge 8 commits intopytorch-ignite:mainfrom
theory-in-progress wants to merge 8 commits intopytorch-ignite:mainfrom
Conversation
Contributor
theory-in-progress
commented
Jul 12, 2023
- 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
✅ Deploy Preview for code-generator ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
| eps = np.finfo(np.float32).eps.item() | ||
|
|
||
|
|
||
| class ActorCriticNetwork(nn.Module): |
Contributor
There was a problem hiding this comment.
@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 ?
Member
There was a problem hiding this comment.
yes, good point, I was also once thinking about torchrl and that we could use it. Thanks!
- DQN Template for CarRacing-v2 - Supports Rendering of video - Starts Giving Good results after ~100 Episodes
- Uses Advantage Actor Critic model using torchrl - Gym Environment: CarRacing-v2
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.