(self, state, action)
| 498 | self.gamma = 0.9 |
| 499 | |
| 500 | def td_estimate(self, state, action): |
| 501 | current_Q = self.net(state, model="online")[ |
| 502 | np.arange(0, self.batch_size), action |
| 503 | ] # Q_online(s,a) |
| 504 | return current_Q |
| 505 | |
| 506 | @torch.no_grad() |
| 507 | def td_target(self, reward, next_state, done): |