Skip to content

Commit

Permalink
consistent names
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jul 8, 2024
1 parent 3a0175a commit 83ed6f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pokemonred_puffer/cleanrl_puffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def evaluate(self):
for count, eid in zip(
self.infos["required_events_count"], self.infos["env_id"]
):
self.events_tracker[eid] = count
self.event_tracker[eid] = count
self.infos[k].append(v)
else:
self.infos[k].append(v)
Expand Down Expand Up @@ -286,8 +286,8 @@ def evaluate(self):
largest = [
x[0]
for x in heapq.nlargest(
math.ceil(len(self.events_tracker) * self.config.swarm_keep_pct),
enumerate(self.events_tracker),
math.ceil(len(self.event_tracker) * self.config.swarm_keep_pct),
enumerate(self.event_tracker),
key=lambda x: x[1],
)
]
Expand Down

0 comments on commit 83ed6f7

Please sign in to comment.