Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make single-category curriculums the same as main curriculums #36

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/browsergym/workarena/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def get_task_category(task_name):


def get_all_tasks_agents(filter="l2", meta_seed=42, n_seed_l1=10, is_agent_curriculum=True):
OFFSET = 42
all_task_tuples = []
filter = filter.split(".")
if len(filter) > 2:
Expand Down Expand Up @@ -149,9 +148,10 @@ def get_all_tasks_agents(filter="l2", meta_seed=42, n_seed_l1=10, is_agent_curri
ALL_COMPOSITIONAL_TASKS_CATEGORIES = HUMAN_CURRICULUM_L3

for category, items in ALL_COMPOSITIONAL_TASKS_CATEGORIES.items():
category_seeds = rng.randint(0, 1000, items["num_seeds"])
if filter_category and category != filter_category:
continue
for curr_seed in rng.randint(0, 1000, items["num_seeds"]):
for curr_seed in category_seeds:
random_gen = np.random.RandomState(curr_seed)
for task_set, count in zip(items["buckets"], items["weights"]):
tasks = random_gen.choice(task_set, count, replace=False)
Expand Down
Loading