(self, path)
| 253 | self.save(args.save_path) |
| 254 | |
| 255 | def save(self, path): |
| 256 | if path is None: |
| 257 | path = os.path.join('model', '_'.join([alg_name, env_id])) |
| 258 | if not os.path.exists(path): |
| 259 | os.makedirs(path) |
| 260 | tl.files.save_weights_to_hdf5(os.path.join(path, 'q_net.hdf5'), self.qnet) |
| 261 | |
| 262 | def load(self, path): |
| 263 | if path is None: |
no outgoing calls
no test coverage detected