Skip to content

Official implementation of the paper "Stochastic Optimization of Areas Under Precision-Recall Curves with Provable Convergence" published on Neurips2021.

Notifications You must be signed in to change notification settings

Optimization-AI/NeurIPS2021_SOAP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 

Repository files navigation

Stochastic Optimization of Areas Under Precision-Recall Curves with Provable Convergence pdf

This is the official implementation of the paper "Stochastic Optimization of Areas Under Precision-Recall Curves with Provable Convergence" published on Neurips2021.

Benchmark Datasets

Image: CIFAR10, CIFAR100, Melanoma
Graph: HIV, MUV, AICures

Package

The main algorithm SOAP has been implemented in LibAUC, with

>>> from libauc.optimizers import SOAP_SGD, SOAP_ADAM

You can design your own loss. The following is a usecase:

pip install libauc
>>> #import library
>>> from libauc.losses import APLoss_SH
>>> from libauc.optimizers import SOAP_SGD, SOAP_ADAM
...
>>> #define loss
>>> Loss = APLoss_SH()
>>> optimizer = SOAP_ADAM()
...
>>> #training
>>> model.train()
>>> for index, data, targets in trainloader:
        data, targets  = data.cuda(), targets.cuda()
        logits = model(data)
	      preds = torch.sigmoid(logits)
        loss = Loss(preds, targets, index)
        optimizer.zero_grad()
        loss.backward()
        optimizer.step()

Reminder

If you want to download the code that reproducing the reported table results for the Neurips 2021 paper, please go to the Graph/Image subdirectories and refer the inside README.md.

Citation

If you find this repo helpful, please cite the following paper:

@article{qi2021stochastic,
  title={Stochastic Optimization of Area Under Precision-Recall Curve for Deep Learning with Provable Convergence},
  author={Qi, Qi and Luo, Youzhi and Xu, Zhao and Ji, Shuiwang and Yang, Tianbao},
  journal={arXiv preprint arXiv:2104.08736},
  year={2021}
}

Contact

If you have any questions, please contact us @ Qi Qi [[email protected]] , and Tianbao Yang [[email protected]] or please open a new issue in the Github.

About

Official implementation of the paper "Stochastic Optimization of Areas Under Precision-Recall Curves with Provable Convergence" published on Neurips2021.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages