Computes the logistic loss and gradient.

should be after """