Comments (3)
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.
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.
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)
- Why CliffWalkingEnv returns 'is_done=True' when reaching cliff? HOT 2
- Is a line missing in 'MC Control with Epsilon-Greedy Policies Solution.ipynb'? HOT 1
- Why is Chapter 11 excluded? HOT 2
- why DQN use kernel size 8 ?
- Gambler's Problem: 0 Stake Allowed?
- Some question in MC Control with Epsilon-Greedy Policies Solution.ipynb HOT 2
- DQL size error
- Policy Evaluation Exercise Solution Is Wrong HOT 1
- Monte Carlo AssertionError: defaultdict(<function mc_control_importance_sampling.<locals>.<lambda> at 0x7f31699ffe18>, {}) (<class 'collections.defaultdict'>)
- Lecture Slides need an update
- Clarification on DQN testing rewards on Atari games
- DQN Testing Rewards on Atari Games HOT 1
- Reinforcement learning policy HOT 1
- Minor Link fix
- A small correction in "MDPs and Bellman Equations" section
- Typo in: "Model-Free Prediction & Control with Monte Carlo (MC)" section -> "Blackjack Playground.ipynb" file:
- Issue in: reinforcement-learning/MC/MC Prediction Solution.ipynb
- please provide requirements.txt or mention the exact version of packages used.
- demystifying-deep-reinforcement-learning link is broken
- MC Control with Epsilon-Greedy Policies ---Epsilon Value and Best Action prob error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reinforcement-learning.