def fit(self, X, y, sample_weight):
        self.y = y
        self.sample_weight = sample_weight
        self.y_signed = 2 * y - 1
        self.adjusted_regularization = numpy.mean(sample_weight) * self.regularization
dataset/ETHPy150Open anaderi/lhcb_trigger_ml/hep_ml/losses.py/BinomialDevianceLossFunction.fit/original