Skip to content
Snippets Groups Projects
Commit 0e139138 authored by Erik Nygren's avatar Erik Nygren
Browse files

fixed missing loop over agent when episode is solved

parent 1169fcb6
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,8 @@ for trials in range(1, n_trials + 1):
obs = next_obs.copy()
if done['__all__']:
env_done = 1
agent.step(final_obs[a], final_action_dict[a], all_rewards[a], final_obs_next[a], done[a])
for a in range(env.get_num_agents()):
agent.step(final_obs[a], final_action_dict[a], all_rewards[a], final_obs_next[a], done[a])
break
# Epsilon decay
eps = max(eps_end, eps_decay * eps) # decrease epsilon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment