Giter VIP home page Giter VIP logo

Comments (5)

AjayTalati avatar AjayTalati commented on May 26, 2024

Got nearly working code in this thread,

https://discuss.pytorch.org/t/continuous-action-a3c/1033

from pytorch-a3c.

AjayTalati avatar AjayTalati commented on May 26, 2024

Hi, any chance you could give me some advice? I'm still stuck trying to get this to work? Here's a post of my code

https://gist.github.com/AjayTalati/184fec867380f6fa22b9aa0951143dec

I keep getting this error,

File "main_single.py", line 174, in <module>
value_loss = value_loss + advantage.pow(2)
AttributeError: 'numpy.ndarray' object has no attribute 'pow'

I don't understand why advantage has become a numpy array instead of a torch.tensor - it never occurred with the discrete action implementation?

Any ideas what I've got wrong?

Thanks a lot for your help,

Best,

Ajay

from pytorch-a3c.

AjayTalati avatar AjayTalati commented on May 26, 2024

Closing this, as continuous functions are just a pain to approximate?

from pytorch-a3c.

ikostrikov avatar ikostrikov commented on May 26, 2024

I will add continuous control later. I don't have time at the moment.

from pytorch-a3c.

AjayTalati avatar AjayTalati commented on May 26, 2024

OK - cool - take your time πŸ‘ I don't mean this as an A3C specific comment, or anything specific about your implementation.

It's just a general observation, (and perhaps a provable fact), that I've found discrete functions easier to approximate that continuous ones.

In terms of simple MLP theory, this is nice by Mhaskar and Poggio,

Learning Real and Boolean Functions: When Is Deep Better Than Shallow

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.