Type error on Prioritized DQN ( unpacking list with star operation)
ugurkanates opened this issue · 2 comments
ugurkanates commented
TypeError Traceback (most recent call last)
in ()
----> 1 agent.train(num_frames)
1 frames
in step(self, action)
134 if not self.is_test:
135 self.transition += [reward, next_state, done]
--> 136 self.memory.store(self.transition)
137
138 return next_state, reward, done
TypeError: store() missing 4 required positional arguments: 'act', 'rew', 'next_obs', and 'done'
Platform is google collab by the way
Curt-Park commented
I will check it.
Curt-Park commented
I think you missed a star (*) in front of self.transition in the line of 136.
It should look like:
self.memory.store(*self.transition)
I've checked it runs well on Colab execution.