Skip to content

Commit

Permalink
use correct key
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jul 10, 2024
1 parent 6a65a59 commit 85fbb1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemonred_puffer/cleanrl_puffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def evaluate(self):
):
# collect the top swarm_keep_pct % of the envs in the batch
largest = [
x[1][1]
x[1][0]
for x in heapq.nlargest(
math.ceil(len(self.event_tracker) * self.config.swarm_keep_pct),
enumerate(self.event_tracker.items()),
Expand Down

0 comments on commit 85fbb1c

Please sign in to comment.