def __init__(self, metadata, tau_pos, tau_neg, n_examples, tau_max=None, same_rec_neg=True, random_state=None):
    super().__init__(metadata, random_state=random_state)
    self.tau_pos = tau_pos
    self.tau_neg = tau_neg
    self.tau_max = (np.inf if (tau_max is None) else tau_max)
    self.n_examples = n_examples
    self.same_rec_neg = same_rec_neg
    if ((not same_rec_neg) and (self.n_recordings < 2)):
        raise ValueError('More than one recording must be available when using across-recording negative sampling.')
def __init__(self, metadata, tau_pos, tau_neg, n_examples, tau_max=None, same_rec_neg=True, random_state=None):
    super().__init__(metadata, random_state=random_state)
    self.tau_pos = tau_pos
    self.tau_neg = tau_neg
    self.tau_max = (np.inf if (tau_max is None) else tau_max)
    self.n_examples = n_examples
    self.same_rec_neg = same_rec_neg
    if ((not same_rec_neg) and (self.n_recordings < 2)):
        raise ValueError('More than one recording must be available when using across-recording negative sampling.')