Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'SumTree' is not defined #1

Open
apurva1210 opened this issue Jul 22, 2019 · 0 comments
Open

NameError: name 'SumTree' is not defined #1

apurva1210 opened this issue Jul 22, 2019 · 0 comments

Comments

@apurva1210
Copy link

apurva1210 commented Jul 22, 2019

Hello,
I am getting this error when i try to run DeepC4.ipynb on google colabs.

NameError                                 Traceback (most recent call last)
<ipython-input-32-31c2879a102a> in <module>()
     24                  "batch_size":64, "gamma":0.90, "n_step":11}
     25 
---> 26 p1 = QPlayer(1, game, **player_config)
     27 p2 = MinimaxC4Player(2, game, epsilon=0)
     28 env = Environment(game, p1, p2)

1 frames
/content/qPlayer.py in __init__(self, name, game, **kwargs)
     23         self.updateTNEvery = kwargs['updateTNEvery'] if 'updateTNEvery' in kwargs else 4000
     24 
---> 25         self.memory = PMemory(self.mem_size) if 'memory' not in kwargs else kwargs['memory']
     26         self.goodMemory = PMemory(self.mem_size) if 'goodMemory' not in kwargs else kwargs['goodMemory']
     27 

/content/pMemory.py in __init__(self, capacity)
      9         self.e = 0.01
     10         self.a = 0.6
---> 11         self.tree = SumTree(capacity)
     12         self.cnt = 0
     13 

NameError: name 'SumTree' is not defined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant