Skip to content

Commit

Permalink
Add mode to get_best_logdir
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Jan 19, 2021
1 parent 8d564be commit 3475527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/rllib.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def main(

print(analysis.dataframe().head())

best_logdir = Path(analysis.get_best_logdir("episode_reward_max"))
best_logdir = Path(analysis.get_best_logdir("episode_reward_max", mode="max"))
model_path = best_logdir / "model"

copy_tree(str(model_path), save_model_path, overwrite=True)
Expand Down

0 comments on commit 3475527

Please sign in to comment.