load trained weights :return: None
(self)
| 213 | tl.files.save_weights_to_hdf5(os.path.join(path, 'critic.hdf5'), self.critic) |
| 214 | |
| 215 | def load(self): |
| 216 | """ |
| 217 | load trained weights |
| 218 | :return: None |
| 219 | """ |
| 220 | path = os.path.join('model', '_'.join([ALG_NAME, ENV_ID])) |
| 221 | tl.files.load_hdf5_to_weights_in_order(os.path.join(path, 'actor.hdf5'), self.actor) |
| 222 | tl.files.load_hdf5_to_weights_in_order(os.path.join(path, 'critic.hdf5'), self.critic) |
| 223 | |
| 224 | def store_transition(self, state, action, reward): |
| 225 | """ |
no outgoing calls
no test coverage detected