gradients of predictions for Trevor