GithubHelp home page GithubHelp logo

shivanshu-gupta / pytorch-double-dqn Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 0.0 13 KB

Pytorch Implementation of Double DQN Algorithm

Python 100.00%
deep-reinforcement-learning pytorch gym deep-learning double-dqn

pytorch-double-dqn's People

Contributors

shivanshu-gupta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pytorch-double-dqn's Issues

Get actions for next states by 'Qnet' or 'target_Qnet'?

Hello, thank you so much for sharing this code structure! I got one thing no very sure about in your code.

if self.args['double_dqn']:
_, next_state_actions = self.Qnet(non_final_next_states).max(1, keepdim=True)
V_next_state[non_final_mask] = self.target_Qnet(non_final_next_states).gather(1, next_state_actions)
else:
V_next_state[non_final_mask] = self.target_Qnet(non_final_next_states).max(1)[0]

You obtain next_state_actions from Qnet, but the following webpage suggests that we should get next_state_actions from target_Qnet. May I know if there is any theory support for your choice or it's simply an error you made? Very much appreciated.

Website: https://towardsdatascience.com/double-deep-q-networks-905dd8325412

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.