def METHOD_NAME(self):
    for i in range(10):
        pred = random.random()
        y = i % 2
        grad = pred - y
        self.assertTrue(np.fabs(self.sigmoid_loss.compute_grad(y, pred) - grad) < consts.FLOAT_ZERO)