ConstantContinuation¶
-
class
ConstantContinuation
(gamma)¶ Bases:
pandemonium.continuations.ContinuationFunction
Special case of state independent discounting
Here we hold \(\gamma\) constant at all times, until we receive a termination signal from the environment (i.e. a done flag in gym envs), in which case we set \(\gamma=1\).
Methods Summary
__call__
(self, t, …)Call self as a function.
Methods Documentation
-
__call__
(self, t: Union[pandemonium.experience.experience.Transition, pandemonium.experience.experience.Trajectory]) → Union[float, torch.Tensor]¶ Call self as a function.
-