basic_utils/replay_memory.py
def sample(self):
        """
        Sample data from the memory.

        Return:
            the sampled path
        """
        idxes = [random.randint(0, len(self._storage) - 1) for _ in range(self.batch_size)]
        return self._encode_sample(idxes)

        Sample data from the memory.

        Return:
            the sampled path
        
Sample data from the memory.
Return:
the sampled path
Sample data from the memory . Return : the sampled path
def sample(self):
        idxes = [random.randint(0, len(self._storage) - 1) for _ in range(self.batch_size)]
        return self._encode_sample(idxes)
def sample ( self ) : idxes = [ random . randint ( 0 , len ( self . _storage ) - 1 ) for _ in range ( self . batch_size ) ] return self . _encode_sample ( idxes )
Sample data from the memory.
Sample data from the memory .
"""
        Sample data from the memory.

        Return:
            the sampled path
        """
self