def append(self, observation, action, reward, terminal, training=True):
super(SequentialMemory, self).append(observation, action, reward, terminal, training=training)<EOL>if training:<EOL><INDENT>self.observations.append(observation)<EOL>self.actions.append(action)<EOL>self.rewards.append(reward)<EOL>self.terminals.append(terminal)<EOL><DEDENT>
Append an observation to the memory

        # Argument
            observation (dict): Observation returned by environment
            action (int): Action taken to obtain this observation
            reward (float): Reward obtained by taking this action
            terminal (boolean): Is the state terminal