Discriminative Learning of Prediction Intervals