-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DDPG fixes #75
DDPG fixes #75
Conversation
kengz
commented
Mar 20, 2017
•
edited by lgraesser
Loading
edited by lgraesser
- make DDPG work for cartpole first, for sanity check
- try dis https://github.com/songrotek/DDPG/blob/master/actor_network.py
- and try dis https://github.com/pemami4911/deep-rl/blob/master/ddpg/ddpg.py
- batch normalization
- make DDPG work for pendulum
- schedule DDPG for all the experiments
- check random seeds
rl/policy/noise.py
Outdated
@@ -44,7 +44,7 @@ def select_action(self, state): | |||
Q_state = agent.actor.predict(state)[0] | |||
assert Q_state.ndim == 1 | |||
action = np.argmax(Q_state) | |||
logger.info(str(Q_state)+' '+str(action)) | |||
# logger.info(str(Q_state)+' '+str(action)) | |||
return action | |||
|
|||
def update(self, sys_vars): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AnnealedGaussian calls self.sample() but I don't think sample has been defined.
Also, how to explore with discrete actions. Add an epsilon greedy component to the policy?
I think it's really close to working but something is off with the gradient update. The DDPG implementation from permami works, and ddpg_tf implementation results in exactly the same actions up to the first gradient update. I also did some testing around the weights init - the algorithm is not that sensitive to them and will work for different initializations. |
working DDPG implemented in #118 |