Skip to content

Learning Theory assignment for the Advanced Machine Learning taught by Antoine Cornuéjols at Paris-Saclay University. Our goal was to reproduce results from the Pseudo-Calibration paper at ICML 2024.

License

Notifications You must be signed in to change notification settings

raphaelrubrice/PseudoCal

 
 

Repository files navigation

Custom README

  1. Download the Office-Home dataset and place it in the data folder
  2. unzip it and remove original zip
  3. launch the correct_filepaths.sh script by specifying the name of the unzipped OfficeHome folder in data.
    bash correct_filepaths.sh OfficeHomeDataset_10072016
  4. before run the pseudocal.sh you should download the PADA.pt inside the folder .PseudoCal/logs/uda/train/22/bnm/office-home/AC and the bnm.pt inside the folder .PseudoCal/logs/uda/train/22/bnm/office-home/AC. No need to unzip.

Code for PseudoCal@ICML 2024

Prerequisites

  • python == 3.7.13
  • cudatoolkit == 10.1.243
  • pytorch ==1.7.1
  • torchvision == 0.8.2
  • numpy, scikit-learn, PIL, argparse

Demo

  • Configure the PyTorch environment.
  • Download the Office-Home dataset. Configure the data lists in data and the checkpoints in logs.
  • Run the code in pseudocal.sh.

Citation

@inproceedings{hu2024pseudocalibration,
    title={Pseudo-Calibration: Improving Predictive Uncertainty Estimation in Unsupervised Domain Adaptation},
    author={Dapeng Hu and Jian Liang and Xinchao Wang and Chuan-Sheng Foo},
    booktitle={Forty-first International Conference on Machine Learning},
    year={2024}
}

Contact

Credit

  • The code is heavily borrowed from TransCal.

About

Learning Theory assignment for the Advanced Machine Learning taught by Antoine Cornuéjols at Paris-Saclay University. Our goal was to reproduce results from the Pseudo-Calibration paper at ICML 2024.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.8%
  • Shell 3.2%