Skip to content

EldercatSAM/DRAUC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DRAUC

This is a PyTorch implementation of DRAUC: An Instance-wise Distributionally Robust AUC Optimization Framework.

Environments

  • torch>=1.5.0
  • torchvision>=0.6.0
  • scikit-learn
  • pillow

Data Preparation

Download following datasets:

Preprocess dataset: run split_train_valid.py to generate train valid split for Tiny-ImageNet

$ tree /path/to/your/datasets/
  ├── CIFAR10
  │   └── cifar-10-batches-py
  │       ├── batches.meta
  │       ├── data_batch_1
  │       ├── ...
  ├── CIFAR100
  │   └── cifar-100-python
  │       ├── cifar-100-python.tar.gz
  │       ├── file.txt~
  │       ├── meta
  │       ├── test
  │       └── train
  ├── CIFAR-100-C
  │   ├── brightness.npy
  │   ├── contrast.npy
  │   ├── ...
  ├── CIFAR-10-C
  │   ├── brightness.npy
  │   ├── contrast.npy
  │   ├── ...
  ├── MNIST
  │   ├── ImbalancedMNIST
  │   │   ├── processed
  │   │   └── raw
  ├── MNIST-C
  │   ├── brightness
  │   │   ├── test_images.npy
  │   │   ├── test_labels.npy
  │   │   ├── train_images.npy
  │   │   └── train_labels.npy
  │   ├── canny_edges
  │   │   ├── test_images.npy
  │   │   ├── ...
  |   ├── ...
  ├── TINYIMAGENET-H
  │   ├── test
  │   │   ├── n01443537
  │   │   ├── n01629819
  │   │   ├── ...
  │   ├── train
  │   │   ├── n01443537
  │   │   ├── n01629819
  │   │   ├── ...
  │   ├── valid
  │   │   ├── n01443537
  │   │   ├── n01629819
  │   │   ├── ...
  │   ├── wnids.txt
  │   └── words.txt
  ├── TINYIMAGENET-C
      ├── brightness
      ├── contrast
      ├── ...
  

Training

python run.py

Citation

If you use the code of this repository, please cite our paper:

@article{dai2023drauc,
      title={DRAUC: An Instance-wise Distributionally Robust AUC Optimization Framework}, 
      author={Siran Dai and Qianqian Xu and Zhiyong Yang and Xiaochun Cao and Qingming Huang},
      year={2023},
      eprint={2311.03055},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

License

This project is under the CC-BY-NC 4.0 license. See LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages