Giter VIP home page Giter VIP logo

Comments (11)

dementrock avatar dementrock commented on August 29, 2024

Seems like I forgot to implement it. Fixed in 4362ad2. Also added a sample script:

https://github.com/rllab/rllab/blob/master/examples/ddpg_cartpole_stub.py

from rllab.

Alex-zhai avatar Alex-zhai commented on August 29, 2024

So are the hyper-parameters of DDPG algorithm fixed between all tasks? I remember the hidden size of networks is {300,400}. However, you set {32,32}.

from rllab.

dementrock avatar dementrock commented on August 29, 2024

I set it to a small network so that it runs faster, and gives sufficiently good results on cartpole balancing. If you'd like to reproduce the results in the paper, you should use larger networks and keep the exact same settings.

from rllab.

dementrock avatar dementrock commented on August 29, 2024

Also I'd recommend sticking with smaller networks at least when you are e.g. tweaking algorithms. The larger networks run much, much slower.

from rllab.

Alex-zhai avatar Alex-zhai commented on August 29, 2024

I used larger networks {300,400} and kept the exact same settings as the original paper in order to solve Half-Cheetah tasks. But the agent had a poor performance. This is my setting:
n_epochs=200, epoch_length=1000, batch_size=32, min_pool_size=10000, replay_pool_size=1000000, eval_samples=10000, hidden_sizes=(400, 300)

from rllab.

Alex-zhai avatar Alex-zhai commented on August 29, 2024

So could you offer your settings of DDPG algorithm on Half-Cheetah tasks? Thank you!!!

from rllab.

dementrock avatar dementrock commented on August 29, 2024

Almost the same configuration as in the sample script, except:

  • Scale reward by 0.1 instead of 0.01
  • max_path_length 500
  • min_pool_size 10000
  • epoch_length 10000
  • n_epochs 2500
  • hidden sizes (400, 300) for both the policy and the Q function

Also I used n_parallel=4 for my experiments. Although this parallelization is only used when sampling trajectories for evaluation.

The whole experiment runs really slow since it's actually using 25x samples than in the original DDPG paper, to match the settings of other algorithms evaluated in the benchmark paper. You should be able to get pretty good results by just using 100 epochs. You can also get more intermediate progress by setting n_epochs to 1000 and then epoch_length to 1000 (the total number of samples = n_epochs * epoch_length).

from rllab.

dementrock avatar dementrock commented on August 29, 2024

The reward scaling is really important. Make sure you have that.

from rllab.

Alex-zhai avatar Alex-zhai commented on August 29, 2024

Perfectly, Thank you for your sharing!!!

from rllab.

dementrock avatar dementrock commented on August 29, 2024

No problem. Let me know if you have any further issues getting it to work.

from rllab.

Alex-zhai avatar Alex-zhai commented on August 29, 2024

Ok, no problem. Thank you!!!

from rllab.

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.