Commit 0241070
committed
fix(model): remove second LSTM from recurent model
- previously I thought that having an LSTM to process the nodes in a sequence, and another to process the timesteps in a sequence was a good idea. It may still be a good idea, but I had to do weird RNN state tiling to make the initial_state shapes work out.
- remove time LSTM and use only one LSTM with no tiled initial_state. This appears to train atleast as well on poly-easy1 parent 02b11ee commit 0241070
File tree
2 files changed
+11
-35
lines changed- libraries/mathy_python/mathy/agents
- a3c
2 files changed
+11
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
526 | 528 | | |
527 | 529 | | |
528 | 530 | | |
529 | | - | |
| 531 | + | |
530 | 532 | | |
531 | 533 | | |
532 | 534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | 75 | | |
77 | | - | |
| 76 | + | |
78 | 77 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 78 | + | |
87 | 79 | | |
88 | 80 | | |
89 | | - | |
| 81 | + | |
90 | 82 | | |
91 | 83 | | |
92 | 84 | | |
| |||
143 | 135 | | |
144 | 136 | | |
145 | 137 | | |
146 | | - | |
147 | | - | |
148 | 138 | | |
149 | 139 | | |
150 | 140 | | |
| |||
178 | 168 | | |
179 | 169 | | |
180 | 170 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 171 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 172 | + | |
| 173 | + | |
196 | 174 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
| 175 | + | |
202 | 176 | | |
203 | 177 | | |
204 | 178 | | |
| |||
0 commit comments