def __iter__(self):
    'Iterate over pairs.\n\n        Yields\n        ------\n            (int): position of the first window in the dataset.\n            (int): position of the second window in the dataset.\n            (float): 0 for negative pair, 1 for positive pair.\n        '
    for i in range(self.n_examples):
        if hasattr(self, 'examples'):
            (yield self.examples[i])
        else:
            (yield self._sample_pair())
Iterate over pairs.

Yields
------
    (int): position of the first window in the dataset.
    (int): position of the second window in the dataset.
    (float): 0 for negative pair, 1 for positive pair.
def __iter__(self):
    'Iterate over pairs.\n\n        Yields\n        ------\n            (int): position of the first window in the dataset.\n            (int): position of the second window in the dataset.\n            (float): 0 for negative pair, 1 for positive pair.\n        '
    for i in range(self.n_examples):
        if hasattr(self, 'examples'):
            (yield self.examples[i])
        else:
            (yield self._sample_pair())