def __init__(self, anom_idx, x, y, triplets_selector, transform=None):
    self.transform = transform
    self.data = x
    (self.triplets, self.targets) = triplets_selector.get_triplets(anom_idx, x, y)
def __init__(self, anom_idx, x, y, triplets_selector, transform=None):
    self.transform = transform
    self.data = x
    (self.triplets, self.targets) = triplets_selector.get_triplets(anom_idx, x, y)