def negative_gradient(self, y, pred, **kargs):
        return y - expit(pred.ravel())
Compute the residual (= negative gradient).
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/ensemble/gradient_boosting.py/BinomialDeviance.negative_gradient