(self)
return sum([t.reward or 0.0 for t in self._timesteps])
Sum of all rewards in this trajectory.
Sum of all rewards in this trajectory.
Sum of all rewards in this trajectory .
def total_return(self):
    """Sum of all rewards in this trajectory."""
    return sum([t.reward or 0.0 for t in self._timesteps])
def total_return ( self ) : return sum ( [ t . reward or 0.0 for t in self . _timesteps ] )