mathy.teacher

Teacher

Teacher(
    self,
    topic_names: List[str],
    num_students: int = 1,
    difficulty: Optional[str] = None,
    eval_window: int = 50,
    win_threshold: float = 0.95,
    lose_threshold: float = 0.34,
)

get_env

Teacher.get_env(self, student_index:int, iteration:int) -> str
Get the current environment a student should be using.

Arguments

  • student_index (int): The index of the student in self.students array.
  • iteration (int): The current iteration (usually an episode).

Returns

(str): The name of a mathy environment to use.

next_difficulty

Teacher.next_difficulty(self, difficulty:str) -> str
Return the previous difficulty level given an input difficulty.

Arguments

  • difficulty (str): The difficulty to increase

Returns

(str): The difficulty level after the input, if any.

previous_difficulty

Teacher.previous_difficulty(self, difficulty:str) -> str
Return the previous difficulty level given an input difficulty.

Arguments

  • difficulty (str): The difficulty to decrease

Returns

(str): The difficulty level before the input, if any.