(y, y_pred)
return y_pred - y
Compute the grad of sigmoid cross entropy function
            Formula : gradient = y_pred - y

        Parameters
        ----------
        y : int, label

        y_pred : float, the predict probability.

        Returns
        -------
        gradient : float, the gradient of binary cross entropy loss
Compute the grad of sigmoid cross entropy function
            Formula : gradient = y_pred - y
Compute the grad of sigmoid cross entropy function Formula : gradient = y_pred - y
def compute_grad(y, y_pred):
        """
        Compute the grad of sigmoid cross entropy function
            Formula : gradient = y_pred - y

        Parameters
        ----------
        y : int, label

        y_pred : float, the predict probability.

        Returns
        -------
        gradient : float, the gradient of binary cross entropy loss

        """
        return y_pred - y
def compute_grad ( y , y_pred ) : return y_pred - y