@abstractmethod
    def __call__(self, y, pred, sample_weight=None):
Compute the loss of prediction ``pred`` and ``y``.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/ensemble/gradient_boosting.py/LossFunction.__call__