Skip to content

Commit

Permalink
reverting back to old sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultLSDC committed Oct 21, 2024
1 parent eac373c commit 4e6e0e2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions browsergym/experiments/src/browsergym/experiments/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ def task_list_from_metadata(metadata: pd.DataFrame, filter: dict[str, str] = {})
"workarena_l1": lambda: Benchmark(
name="workarena_l1",
high_level_action_set_args=DEFAULT_HIGHLEVEL_ACTION_SET_ARGS["workarena_l1"],
env_args_list=_make_env_args_list_from_repeat_tasks(
task_list=task_list_from_metadata(
metadata=task_metadata("workarena"), filter={"level": "l1"}
),
env_args_list=_make_env_args_list_from_workarena_curriculum(
level="l1",
task_category_filter=None,
meta_seed=42, # meta seed for evaluation curriculum
max_steps=15,
n_repeats=10,
seeds_rng=np.random.RandomState(42),
curriculum_type="agent",
seeds_l1=10,
),
task_metadata=task_metadata("workarena"),
),
Expand Down Expand Up @@ -335,6 +335,7 @@ def _make_env_args_list_from_workarena_curriculum(
meta_seed: int,
max_steps: int,
curriculum_type: Literal["human", "agent"],
seeds_l1: int = 10,
):
"""
Returns a WorkArena predefined task curriculum (e.g., task and seed combination).
Expand All @@ -350,6 +351,7 @@ def _make_env_args_list_from_workarena_curriculum(
filter=f"{level}.{task_category_filter}" if task_category_filter else level,
meta_seed=meta_seed,
is_agent_curriculum=(curriculum_type == "agent"),
n_seed_l1=seeds_l1,
)

for task, seed in all_task_tuples:
Expand Down

0 comments on commit 4e6e0e2

Please sign in to comment.