keon / deep-q-learning

Minimal Deep Q Learning (DQN & DDQN) implementations in Keras
https://keon.io/deep-q-learning
MIT License
1.29k stars 455 forks source link

IndexError #26

Closed aurelieJin closed 5 years ago

aurelieJin commented 5 years ago

I add 2 convolutional layer and train this on miniworld (another gym environment),but i keep getting this: `IndexError Traceback (most recent call last)

in 39 40 if len(agent.memory) > batch_size: ---> 41 agent.replay(batch_size) 42 43 if e % 10 == 0: in replay(self, batch_size) 59 60 ---> 61 target_f[0][action] = target 62 self.model.fit(state, target_f, epochs=1, verbose=0) IndexError: index 17447 is out of bounds for axis 0 with size 60 ` I don't know why I got the index 17447...