├── .gitignore ├── LICENSE ├── README.md ├── calibration_library ├── calibrators.py └── metrics.py ├── content ├── final_teaser.jpg └── teaser.png ├── datasets ├── __init__.py ├── cifar10.py ├── cifar100.py ├── imagenet.py ├── imbalanced_cifar.py ├── mendley.py ├── mnist.py ├── pacs.py └── svhn.py ├── experiments ├── ood_pacs.py ├── rotated_mnist.py └── train_imbalanced.py ├── models ├── __init__.py ├── mendley_networks.py ├── resnet.py ├── resnet_imagenet.py ├── resnet_mnist.py └── resnet_pacs.py ├── posthoc_calibrate.py ├── requirements.txt ├── scripts ├── cifar10.sh ├── cifar100.sh ├── imagenet.sh ├── mendley.sh ├── mnist.sh ├── pacs.sh └── svhn.sh ├── solvers ├── flsd.py ├── loss.py ├── mmce.py └── runners.py ├── train.py └── utils ├── __init__.py ├── argparser.py ├── earlystopper.py ├── eval.py ├── logger.py └── misc.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/README.md -------------------------------------------------------------------------------- /calibration_library/calibrators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/calibration_library/calibrators.py -------------------------------------------------------------------------------- /calibration_library/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/calibration_library/metrics.py -------------------------------------------------------------------------------- /content/final_teaser.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/content/final_teaser.jpg -------------------------------------------------------------------------------- /content/teaser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/content/teaser.png -------------------------------------------------------------------------------- /datasets/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/datasets/__init__.py -------------------------------------------------------------------------------- /datasets/cifar10.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/datasets/cifar10.py -------------------------------------------------------------------------------- /datasets/cifar100.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/datasets/cifar100.py -------------------------------------------------------------------------------- /datasets/imagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/datasets/imagenet.py -------------------------------------------------------------------------------- /datasets/imbalanced_cifar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/datasets/imbalanced_cifar.py -------------------------------------------------------------------------------- /datasets/mendley.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/datasets/mendley.py -------------------------------------------------------------------------------- /datasets/mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/datasets/mnist.py -------------------------------------------------------------------------------- /datasets/pacs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/datasets/pacs.py -------------------------------------------------------------------------------- /datasets/svhn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/datasets/svhn.py -------------------------------------------------------------------------------- /experiments/ood_pacs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/experiments/ood_pacs.py -------------------------------------------------------------------------------- /experiments/rotated_mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/experiments/rotated_mnist.py -------------------------------------------------------------------------------- /experiments/train_imbalanced.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/experiments/train_imbalanced.py -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/mendley_networks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/models/mendley_networks.py -------------------------------------------------------------------------------- /models/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/models/resnet.py -------------------------------------------------------------------------------- /models/resnet_imagenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/models/resnet_imagenet.py -------------------------------------------------------------------------------- /models/resnet_mnist.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/models/resnet_mnist.py -------------------------------------------------------------------------------- /models/resnet_pacs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/models/resnet_pacs.py -------------------------------------------------------------------------------- /posthoc_calibrate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/posthoc_calibrate.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/cifar10.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/scripts/cifar10.sh -------------------------------------------------------------------------------- /scripts/cifar100.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/scripts/cifar100.sh -------------------------------------------------------------------------------- /scripts/imagenet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/scripts/imagenet.sh -------------------------------------------------------------------------------- /scripts/mendley.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/scripts/mendley.sh -------------------------------------------------------------------------------- /scripts/mnist.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/scripts/mnist.sh -------------------------------------------------------------------------------- /scripts/pacs.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/scripts/pacs.sh -------------------------------------------------------------------------------- /scripts/svhn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/scripts/svhn.sh -------------------------------------------------------------------------------- /solvers/flsd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/solvers/flsd.py -------------------------------------------------------------------------------- /solvers/loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/solvers/loss.py -------------------------------------------------------------------------------- /solvers/mmce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/solvers/mmce.py -------------------------------------------------------------------------------- /solvers/runners.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/solvers/runners.py -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/train.py -------------------------------------------------------------------------------- /utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/utils/__init__.py -------------------------------------------------------------------------------- /utils/argparser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/utils/argparser.py -------------------------------------------------------------------------------- /utils/earlystopper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/utils/earlystopper.py -------------------------------------------------------------------------------- /utils/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/utils/eval.py -------------------------------------------------------------------------------- /utils/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/utils/logger.py -------------------------------------------------------------------------------- /utils/misc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdca-loss/MDCA-Calibration/HEAD/utils/misc.py --------------------------------------------------------------------------------