peal.teachers.human2model_teacher.DataStore

class peal.teachers.human2model_teacher.DataStore[source]

Bases: object

Mutable state shared between the Flask route and the training thread.

Variables:
  • i (int) – Index of the next collage to show.

  • collage_paths (list of str) – Paths under static/ of the collages awaiting feedback.

  • feedback (list of str) – Collected answers ("true", "false", "ood" or an automatic "student incorrect!" / "student not swapped!" entry).

  • y_target_end_confidence_list (list of float) – Confidence of the student in the target class after the edit.

  • student_correct_list (list of bool) – Whether the student’s source prediction matched the label.

Methods

Attributes

i = None
collage_paths = None
feedback = None
y_target_end_confidence_list = None
student_correct_list = None