autorl/agents.py
def _return(self, rewards):
        """
        Return the total discounted reward for a given sequential
        list of rewards and a discount rate
        :param rewards: List of rewards
        :return: MC Target (total discounted rewards)
        """
        return sum([rewards[i]*pow(self._discount, i) for i in range(len(rewards))])

        Return the total discounted reward for a given sequential
        list of rewards and a discount rate
        :param rewards: List of rewards
        :return: MC Target (total discounted rewards)
        
Return the total discounted reward for a given sequential
list of rewards and a discount rate
Return the total discounted reward for a given sequential list of rewards and a discount rate
def _return(self, rewards):
        return sum([rewards[i]*pow(self._discount, i) for i in range(len(rewards))])
def _return ( self , rewards ) : return sum ( [ rewards [ i ] * pow ( self . _discount , i ) for i in range ( len ( rewards ) ) ] )
Return the total discounted reward for a given sequential
list of rewards and a discount rate
Return the total discounted reward for a given sequential list of rewards and a discount rate
"""
        Return the total discounted reward for a given sequential
        list of rewards and a discount rate
        :param rewards: List of rewards
        :return: MC Target (total discounted rewards)
        """
MC Target (total discounted rewards)
MC Target ( total discounted rewards )
self
rewards
List of rewards
List of rewards