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.

get_params()[source]
Returns

(dict) returns the current status of the curriculum itself. The actors used and so on.

initialize_actors(env)[source]

This function is used to initialize the actors. Basically it gives the intervention actors a chance to access the env and query about things like action space and so on.

Parameters

env – (causal_world.CausalWorld) The env used.

Returns