syllabus.curricula package#
syllabus.curricula.noop module#
- class syllabus.curricula.noop.NoopCurriculum(default_task, *curriculum_args, **curriculum_kwargs)#
Bases:
Curriculum
Used to to test API without a curriculum.
- REQUIRES_CENTRAL_UPDATES = False#
- REQUIRES_STEP_UPDATES = True#
- add_task(task: tuple) None #
- sample(k: int = 1) List | Any #
Sample k tasks from the curriculum.
- update(update_data)#
Update the curriculum with the specified update type.
- update_on_demand(metrics)#
Update the curriculum with arbitrary inputs.
- update_on_episode(episode_return) None #
Update the curriculum with episode results from the environment.
- update_on_step(obs, rew, term, trunc, info) None #
Update the curriculum with the current step results from the environment.
- update_on_step_batch(step_results) None #
Update the curriculum with a batch of step results from the environment.
- update_task_progress(task, success_prob) None #
Update the curriculum with a task and its success probability upon success or failure.
syllabus.curricula.sequential module#
- class syllabus.curricula.sequential.SequentialCurriculum(task_list: List[Any], *curriculum_args, num_repeats: List[int] | None = None, repeat_list=True, **curriculum_kwargs)#
Bases:
Curriculum
- REQUIRES_CENTRAL_UPDATES = False#
- REQUIRES_STEP_UPDATES = False#
- remaining_tasks()#
Return the number of tasks remaining in the manual curriculum.
- sample(k: int = 1) List | Any #
Choose the next k tasks from the list.
syllabus.curricula.simple_box module#
- class syllabus.curricula.simple_box.SimpleBoxCurriculum(*curriculum_args, steps: int = 5, success_threshold: float = 0.25, required_successes: int = 10, **curriculum_kwargs)#
Bases:
Curriculum
Base class and API for defining curricula to interface with Gym environments.
- REQUIRES_CENTRAL_UPDATES = False#
- REQUIRES_STEP_UPDATES = False#
- sample(k: int = 1) List | Any #
Sample k tasks from the curriculum.
- update_task_progress(task: Any, success_prob: float) None #
Update the curriculum with a task and its success probability upon success or failure.