質問編集履歴
1
エラーメッセージを全文にしました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,9 +16,19 @@
|
|
16
16
|
|
17
17
|
```
|
18
18
|
|
19
|
+
Traceback (most recent call last):
|
20
|
+
|
21
|
+
File "C:\~\rl_study.py", line 185, in <module>
|
22
|
+
|
23
|
+
reward = sim.run(train=True)
|
24
|
+
|
25
|
+
File "C:\~\rl_study.py", line 172, in run
|
26
|
+
|
27
|
+
self.agent.update_model(old_seq, action, reward)
|
28
|
+
|
19
|
-
line 10
|
29
|
+
File "C:\~\rl_study.py", line 105, in update_model
|
20
|
-
|
30
|
+
|
21
|
-
|
31
|
+
x = Variable(batch[:, 0:1].reshape((self.batch_num, -1)).astype(np.float32))
|
22
32
|
|
23
33
|
IndexError: too many indices for array
|
24
34
|
|