Code Monkey home page Code Monkey logo

Comments (3)

dennybritz avatar dennybritz commented on May 12, 2024

Hi there,

The code is still work in progress (it has the same problem as #30).

Where is epsilon greedy policy? I can't find it here.

There is no epsilon-greedy in A3C. Exploration is done by adding the entropy to the loss term. You may be confusing it with the Async Q Learning from the paper?

Where is accumulation of the gradients?

That's done using the minibatching. I think calculating gradients on the minibatch should be equivalent to calculating them on single examples and adding them up. I may be wrong here though.

Every update need same forward calculation which is done in prediction and this will slow down the speed of learning. I once tried to solve this problem by using partial_run but did you solve this problem?

Yeah,partial_run is definitely one solution. I think it wasn't fully supported in previous TF versions, but I think it's now. I will try add that to make it a bit faster. However, I don't think it's a huge bottleneck. The forward computation is pretty cheap (it's only a small 3 layer CNN...) so I wouldn't expect speedup above 2x. I think the original implementation use Hogwild-style SGD updates, i.e. they don't do any locking at all. That should be faster. I'm also not sure how exactly the multithreading and CPU core assignment in Tensorflow's session works. That may be another bottleneck.

Did this code replicate the results of the paper?

Nope, not yet. I'm still trying to figure out the issue in #30 - Hopefully I can come back to this one after it's solved..

from reinforcement-learning.

carpedm20 avatar carpedm20 commented on May 12, 2024

Thanks for the quick answer. Yes, I confused with the Q-learning and actor-critic method. I once tried to replicate the results but eventually failed.. so I hope you can solve the problems. Anyway, I learned lots of new methods of TF from your codes and your posts. Thanks again!

from reinforcement-learning.

dennybritz avatar dennybritz commented on May 12, 2024

Thanks, same to you! I learned a lot form all the code you have on Github as well :) I'll definitely let you know if I manage to reproduce the results.

from reinforcement-learning.

Related Issues (20)

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.