Curriculum¶
Curriculum¶
-
class
causal_world.curriculum.
Curriculum
(intervention_actors, actives)[source]¶ -
__init__
(intervention_actors, actives)[source]¶ This corresponds to a curriculum object where it takes in the intervention actor and when are they supposed to be activated.
- Parameters
intervention_actors – (list) list of intervention actors
actives – (list of tuples) each tuple indicates (episode_start, episode_end, episode_periodicity, time_step_for_intervention)
-
get_interventions
(current_task_params, episode, time_step)[source]¶ - Parameters
current_task_params – (dict) specifies the current variables in the world and their values, its max 2 levels dictionary for now.
episode – (int) specifies the current episode number.
time_step – (int) specifies the current time step index within the episode.
- Returns
(dict) returns a dictionary of all the variables decided to intervene on by the actors.
-