Post-hoc calibration without distributional assumptions