Skip to content

Commit

Permalink
fixing invalid comment copy-pasted from another method (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliostad authored and random-user-x committed Aug 22, 2018
1 parent a766fd4 commit 08f821a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions rl/memory.py
Expand Up @@ -320,13 +320,10 @@ def append(self, observation, action, reward, terminal, training=True):
self.intermediate_rewards.append(reward)

def finalize_episode(self, params):
"""Append an observation to the memory
"""Closes the current episode, sums up rewards and stores the parameters
# 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
params (object): Parameters associated with the episode to be stored and then retrieved back in sample()
"""
total_reward = sum(self.intermediate_rewards)
self.total_rewards.append(total_reward)
Expand Down

0 comments on commit 08f821a

Please sign in to comment.