def fit(self, X, y, sample_weight):
        self.y = y
        self.sample_weight = sample_weight
        self.y_signed = 2 * y - 1
        self.sig_w = (y == 1) * self.sample_weight
        self.bck_w = (y == 0) * self.sample_weight
dataset/ETHPy150Open anaderi/lhcb_trigger_ml/hep_ml/losses.py/CompositeLossFunction.fit/original