Skip to content

Commit

Permalink
Update environment_loop.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pddub97 authored Jan 19, 2023
1 parent fd4b4a7 commit 0ceea5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mava/environment_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,12 @@ def run_episode(self) -> loggers.LoggingData:
# For evaluation, this keeps track of the total undiscounted reward
# for each agent accumulated during the episode.
rewards: Dict[str, float] = {}
rewards_SOC: Dict[str, float] = {}
episode_returns: Dict[str, float] = {}
for agent, spec in self._environment.reward_spec().items():
rewards.update({agent: generate_zeros_from_spec(spec)})
rewards_SOC.update({agent: generate_zeros_from_spec(spec)})
rewards_load.update({agent: generate_zeros_from_spec(spec)})
episode_returns.update({agent: generate_zeros_from_spec(spec)})

# Run an episode.
Expand Down

0 comments on commit 0ceea5b

Please sign in to comment.