Save a transition
(self, *args)
| 141 | self.memory = deque([], maxlen=capacity) |
| 142 | |
| 143 | def push(self, *args): |
| 144 | """Save a transition""" |
| 145 | self.memory.append(Transition(*args)) |
| 146 | |
| 147 | def sample(self, batch_size): |
| 148 | return random.sample(self.memory, batch_size) |
no outgoing calls
no test coverage detected