def __getstate__(self): """Get Serializable state of the RLALgorithm instance.""" d = Serializable.__getstate__(self) d.update({ 'qf1-params': self._qf1.get_param_values(), 'qf2-params': self._qf2.get_param_values(), 'vf-params': self._vf.get_param_values(), 'policy-params': self._policy.get_param_values(), 'pool': self._pool.__getstate__(), 'env': self._env.__getstate__(), }) return d
def __getstate__(self): d = Serializable.__getstate__(self) global load_params if load_params: d["params"] = self.get_param_values() return d