def presample(self):
    'Presample examples.\n\n        Once presampled, the examples are the same from one epoch to another.\n        '
    self.examples = [self._sample_pair() for _ in range(self.n_examples)]
    return self
Presample examples.

Once presampled, the examples are the same from one epoch to another.
def presample(self):
    'Presample examples.\n\n        Once presampled, the examples are the same from one epoch to another.\n        '
    self.examples = [self._sample_pair() for _ in range(self.n_examples)]
    return self