Skip to content

Commit

Permalink
Better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Apr 14, 2024
1 parent 55604e0 commit e536340
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pokemonred_puffer/cleanrl_puffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,11 @@ def evaluate(self):
for i in range(self.config.num_envs)
]
# Do this with + because f-strings are tricky. Can do nested f-string in a later python.
print(
f"Migrating states: {','.join(str(i) + '->' + str(n) for i, n in enumerate(reset_states))}"
)
print("Migrating states:")
for i, n in enumerate(reset_states):
print(
f"\t {i} -> {n}, event scores: {self.infos["learner"]["reward/event"][i]} -> {self.infos["learner"]["reward/event"][n]}"
)
for i in range(self.config.num_envs):
self.env_recv_queues[i].put(self.infos["learner"]["state"][reset_states[i]])
for i in range(self.config.num_envs):
Expand Down

0 comments on commit e536340

Please sign in to comment.