GithubHelp home page GithubHelp logo

Comments (5)

Tomakko avatar Tomakko commented on July 25, 2024

Note that your are dividing twice through the batch size when computing the update for the actor weights.
1 q_gradient_batch = self.critic_network.gradients(state_batch,action_batch_for_gradients)/BATCH_SIZE in ddpg.py

2 self.parameters_gradients = tf.gradients(self.action_output,self.parameters,-self.q_gradient_input/BATCH_SIZE) in actor.py

This might be the cause of your bad performance.

from ddpg.

GeremWD avatar GeremWD commented on July 25, 2024

Hi,
Did you manage to improve the performances by correcting this ? Because even if i do not see any other error in the code, it does not work.

from ddpg.

Tomakko avatar Tomakko commented on July 25, 2024

Still embedding this into a bigger project. I can probably give you feedback if its working or not in a week or so.
Could you elaborate what it not working out? Does the networks converge?
Btw: Note that in the original paper the critic has a learning rate of 0.001 while the author is using 0.0001.

from ddpg.

doomie avatar doomie commented on July 25, 2024

The paper suggests using batch-norm ("We also report results with components of our algorithm (i.e. the target network or batch normalization) removed. In order to perform
well across all tasks, both of these additions are necessary. "). See Figure 2 in https://arxiv.org/pdf/1509.02971.pdf

from ddpg.

floodsung avatar floodsung commented on July 25, 2024

Have fixed bugs and added batch norm on the actor network!

from ddpg.

Related Issues (18)

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.