def set_valid_idx(self):
    'Set the validation index.\n        '
    assert self.done_adding_teach
    self.nb_valid_items = int((self.valid_frac * self.nb_entries))
Set the validation index.
def set_valid_idx(self):
    '\n        '
    assert self.done_adding_teach
    self.nb_valid_items = int((self.valid_frac * self.nb_entries))