Skip to content

Commit

Permalink
[misc] Fix acrobot example eval max horizon.
Browse files Browse the repository at this point in the history
  • Loading branch information
duburcqa committed Nov 26, 2024
1 parent a7cf740 commit 59a28a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/gym_jiminy/examples/rllib/acrobot_ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,7 @@
rl_module = build_module_from_checkpoint(checkpoint_path)
policy_fn = build_module_wrapper(rl_module)
for seed in (1, 1, 2):
env.evaluate(policy_fn, seed=seed) # type: ignore[attr-defined]
env.evaluate( # type: ignore[attr-defined]
policy_fn,
seed=seed,
horizon=env.spec.max_episode_steps) # type: ignore[union-attr]

0 comments on commit 59a28a7

Please sign in to comment.