(self, path)
| 351 | return b_q - (b_r + reward_gamma * b_q_) |
| 352 | |
| 353 | def save(self, path): |
| 354 | if path is None: |
| 355 | path = os.path.join('model', '_'.join([alg_name, env_id])) |
| 356 | if not os.path.exists(path): |
| 357 | os.makedirs(path) |
| 358 | tl.files.save_weights_to_hdf5(os.path.join(path, 'q_net.hdf5'), self.qnet) |
| 359 | |
| 360 | def load(self, path): |
| 361 | if path is None: |
no outgoing calls
no test coverage detected