Skip to content

Commit

Permalink
Fix testing of trained policy in notebook
Browse files Browse the repository at this point in the history
see #586
  • Loading branch information
eleurent committed Apr 14, 2024
1 parent dc5cdea commit 413de13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/intersection_social_dqn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
"env = load_environment(env_config)\n",
"env.config[\"offscreen_rendering\"] = True\n",
"agent = load_agent(agent_config, env)\n",
"evaluation = Evaluation(env, agent, num_episodes=1)\n",
"evaluation.train()\n",
"evaluation = Evaluation(env, agent, num_episodes=20, training = False, recover = True)\n",
"evaluation.test()\n",
"show_videos(evaluation.run_directory)"
]
}
Expand Down

0 comments on commit 413de13

Please sign in to comment.