def __call__(self, y_true, y_pred):
        """Returns the log loss.

        Example:
            >>> import starboost as sb
            >>> y_true = [0, 0, 1]
            >>> y_pred = [0.5, 0.5, 0.5]
            >>> sb.losses.LogLoss()(y_true, y_pred)
            0.807410...
        """
        loss = -((np.multiply(y_true, y_pred)) - np.logaddexp(0., y_pred))
        return loss.mean()
def __call__ ( self , y_true , y_pred ) : loss = - ( ( np . multiply ( y_true , y_pred ) ) - np . logaddexp ( 0. , y_pred ) ) return loss . mean ( )
Returns the log loss.

        Example:
            >>> import starboost as sb
            >>> y_true = [0, 0, 1]
            >>> y_pred = [0.5, 0.5, 0.5]
            >>> sb.losses.LogLoss()(y_true, y_pred)
            0.807410...