Skip to content

Commit

Permalink
fix tdl-small in enjoy
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin18 committed Oct 24, 2023
1 parent d09c78c commit 2bdf3c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/enjoy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
NTupleNetworkBasePolicy,
NTupleNetworkQLearningPolicy,
NTupleNetworkTDPolicy,
NTupleNetworkTDPolicySmall,
)


Expand All @@ -21,7 +22,7 @@ def parse_args() -> argparse.Namespace:
"--algo",
default="tdl",
help="RL Algorithm",
choices=["ql", "tdl"],
choices=["ql", "tdl", "tdl-small"],
)
parser.add_argument(
"--env",
Expand Down Expand Up @@ -62,6 +63,7 @@ def make_policy(algo: str, trained_agent: str) -> NTupleNetworkBasePolicy:
algo_policy_map = {
"ql": NTupleNetworkQLearningPolicy,
"tdl": NTupleNetworkTDPolicy,
"tdl-small": NTupleNetworkTDPolicySmall,
}
policy = algo_policy_map[algo]
return policy.load(trained_agent)
Expand Down

0 comments on commit 2bdf3c7

Please sign in to comment.