Git Product home page Git Product logo

Comments (5)

LoveRL avatar LoveRL commented on May 24, 2024

Hi,

How about changing the 'UPDATE_GLOBAL_ITER' more than 5?

It was helpful to me and I got following performance with UPDATE_GLOBAL_ITER=10.

image

from pytorch-a3c.

pengzhi1998 avatar pengzhi1998 commented on May 24, 2024

Hi, but when I ran this code, the moving average reward is always below -1000 for the continuous situation, do you know what kind of problem it could be? (the 'UPDATE_GLOBAL_ITER' has already been set to 10) The performance of the discrete situation is very bad as well.

from pytorch-a3c.

LoveRL avatar LoveRL commented on May 24, 2024

Hi,

Here is another trial.

Try 'torch.nn.utils.clip_grad_norm_(lnet.parameters(), 20)' in utils.py

image

It helped me to reduce performance differences.

from pytorch-a3c.

pengzhi1998 avatar pengzhi1998 commented on May 24, 2024

Hi,

Here is another trial.

Try 'torch.nn.utils.clip_grad_norm_(lnet.parameters(), 20)' in utils.py

image

It helped me to reduce performance differences.

Thank you! I'll take a try.

from pytorch-a3c.

Eify666666 avatar Eify666666 commented on May 24, 2024

Hi,

Here is another trial.

Try 'torch.nn.utils.clip_grad_norm_(lnet.parameters(), 20)' in utils.py

image

It helped me to reduce performance differences.

Hi,I meet a trouble when I train another A3C.
After some time, all the networks always output the same action.
I tried the "torch.nn.utils.clip_grad_norm_(lnet.parameters(), 20)", it doesn't work.
It may be that during the training process, the network tries many times, but does not reap the reward.
Do you have any ideas about this problem?

from pytorch-a3c.

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.