agent.py
def remember(self, sars):
        """
        Inserts a state action reward new_state
        observation into the memory bank
        and pops the oldest memory if limit was
        a limit reached
        """

        self.memory.append(sars)
        log.debug('new sars observation inserted')
        log.debug('before memory size ' + str(len(self.memory)))

        if len(self.memory) > self.memory_max_len:
            log.debug('memory reached the max size. Removing oldest memory')
            self.memory.popleft()

        log.debug('after memory size ' + str(len(self.memory)))

        Inserts a state action reward new_state
        observation into the memory bank
        and pops the oldest memory if limit was
        a limit reached
        
Inserts a state action reward new_state
observation into the memory bank
and pops the oldest memory if limit was
a limit reached
Inserts a state action reward new_state observation into the memory bank and pops the oldest memory if limit was a limit reached
def remember(self, sars):
        self.memory.append(sars)
        log.debug('new sars observation inserted')
        log.debug('before memory size ' + str(len(self.memory)))
        if len(self.memory) > self.memory_max_len:
            log.debug('memory reached the max size. Removing oldest memory')
            self.memory.popleft()
        log.debug('after memory size ' + str(len(self.memory)))
def remember ( self , sars ) : self . memory . append ( sars ) log . debug ( 'new sars observation inserted' ) log . debug ( 'before memory size ' + str ( len ( self . memory ) ) ) if len ( self . memory ) > self . memory_max_len : log . debug ( 'memory reached the max size. Removing oldest memory' ) self . memory . popleft ( ) log . debug ( 'after memory size ' + str ( len ( self . memory ) ) )
Inserts a state action reward new_state
observation into the memory bank
and pops the oldest memory if limit was
a limit reached
Inserts a state action reward new_state observation into the memory bank and pops the oldest memory if limit was a limit reached
"""
        Inserts a state action reward new_state
        observation into the memory bank
        and pops the oldest memory if limit was
        a limit reached
        """
self
sars