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

updated training file to max time and added multi speed and stochasticity

parent f3194eb3
No related branches found
No related tags found
No related merge requests found
......@@ -168,8 +168,8 @@ def main(argv):
# Collection information about training
tasks_finished = 0
for agent in env.agents:
if agent.status == RailAgentStatus.DONE_REMOVED:
for current_agent in env.agents:
if current_agent.status == RailAgentStatus.DONE_REMOVED:
tasks_finished += 1
done_window.append(tasks_finished / max(1, env.get_num_agents()))
scores_window.append(score / max_steps) # save most recent score
......
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