Post-hoc Calibration of Neural Networks