Coder Social home page Coder Social logo

Comments (5)

Kaixhin avatar Kaixhin commented on July 21, 2024

I see you're printing self.actions.get(action) and it's returning None. Can you also print action as well (just beforehand). Also print self.actions once (can do that at the end of the __init__ function in Env)? Which game are you using (default is Space Invaders)?

from rainbow.

forhonourlx avatar forhonourlx commented on July 21, 2024

Yes, the default is 'space_invaders'.

at init self.actions: {0: 0, 1: 1, 2: 3, 3: 4, 4: 11, 5: 12}
...
action: 5 ,self.actions.get(action): 12 ,done: False
action: 5 ,self.actions.get(action): 12 ,done: False
action: 5 ,self.actions.get(action): 12 ,done: False
action: 5 ,self.actions.get(action): 12 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 3 ,self.actions.get(action): 4 ,done: False
action: 3 ,self.actions.get(action): 4 ,done: False
action: 3 ,self.actions.get(action): 4 ,done: False
action: 3 ,self.actions.get(action): 4 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 3 ,self.actions.get(action): 4 ,done: False
action: 3 ,self.actions.get(action): 4 ,done: False
action: 3 ,self.actions.get(action): 4 ,done: False
action: 3 ,self.actions.get(action): 4 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action: 1 ,self.actions.get(action): 1 ,done: False
action:
2
[torch.cuda.LongTensor of size () (GPU 0)]
,self.actions.get(action): None ,done: False

from rainbow.

Kaixhin avatar Kaixhin commented on July 21, 2024

This seems like another change introduced by PyTorch 0.4. There's a lot of breaking changes so for now I would suggest downgrading to 0.3.1 if possible. Once 0.4 is released (I believe very soon) then I'll start working on porting the code.

from rainbow.

forhonourlx avatar forhonourlx commented on July 21, 2024

Hi Kaixhin, thank you all the way.
Sorry about my unfimilarity with PyTorch.
It's hard to find some keras implemenation of Rainbow DQN, and does it represent the heat of frameworks in some extent?
What's the advantages of PyTorch in your opinion?

from rainbow.

Kaixhin avatar Kaixhin commented on July 21, 2024

PyTorch is very Pythonic - you can write programs normally and introduce deep learning components. This means its much easier to deal with interacting with an environment, storing data in data structures etc. Becoming familiar with programming in Python in general, as well as going through the PyTorch tutorials, can help you become more familiar with it.

from rainbow.

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.