Skip to content

Commit

Permalink
updating evaluation tests for gym.make changes
Browse files Browse the repository at this point in the history
  • Loading branch information
reginald-mclean committed Nov 6, 2024
1 parent 0b499b7 commit b32454e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/metaworld/test_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def test_evaluation():
random.seed(SEED)
np.random.seed(SEED)
envs = gym.make_vec(
"Meta-World/MT50-async", seed=SEED, max_episode_steps=max_episode_steps
"Meta-World/MT50",
seed=SEED,
vector_strategy="async",
max_episode_steps=max_episode_steps,
)
agent = ScriptedPolicyAgent(envs)
mean_success_rate, mean_returns, success_rate_per_task = evaluation.evaluation(
Expand All @@ -109,8 +112,9 @@ def test_metalearning_evaluation(benchmark):
random.seed(SEED)
np.random.seed(SEED)
envs = gym.make_vec(
f"Meta-World/{benchmark}-test-async",
f"Meta-World/{benchmark}-test",
seed=SEED,
vector_strategy="async",
meta_batch_size=meta_batch_size,
max_episode_steps=max_episode_steps,
)
Expand Down

0 comments on commit b32454e

Please sign in to comment.