# Code for NeurIPS Submission 17260 "Beyond Overconfidence: Foundation Models Redefine Calibration in Deep Neural Networks"

## Requirements

To install the required packages, run:

```setup
pip install -r requirements.txt
```

## Download Data
Before running the code, you need to download the model outputs from the provided [Zenodo URL](https://doi.org/XX.XXXX/zenodo.XXXXXXXX). Make sure to set the correct path in the code where the logits are stored.

## Post-hoc Calibration
The calculation of post-hoc calibrated outputs is performed using the ModelTransformer package. Ensure that this package is properly installed and configured in your environment.

## Reproducability of Main Figures
The code for creating the figures is located in the 'CalibrationStudy.ipynb' notebook. This notebook contains all the necessary steps to visualize the results of the calibration study.

