Git Product home page Git Product logo

disparity_early_stopping's Introduction

Disparity Between Batches as a Signal for Early Stopping

Requirements

We conducted experiments under:

  • python 3.5.2
  • torch 1.4.0
  • torchvision 0.5.0
  • cuda 10.2
  • jupyter-notebook 6.0.3
  • ipython 7.9.0
  • 1 Nvidia Titan X Maxwell GPU

Datasets:

Description of files

  • datasets.py: the code to get data loader for MNIST, CIFAR-10 and CIFAR-100 datasets for a given batch size, training set size and level of label noise.
  • dataloader_mrnet.py: the code to get the data loader for MRNet dataset.
  • models.py: the code for neural network configurations that are used and two parameter initialization techniques.
  • model_mrnet.py: the code for the configuration used for MRNet dataset.
  • experiments.py: the code to train the models and compute gradient disparity in each epoch.
  • results.ipynb: the code to plot figures after the execution of experiments.py is finished.
  • experiments_mrnet.ipynb: the code to train the model for the MRNet dataset.

Example

To train a ResNet-18 on 12.8 k points of the CIFAR-10 dataset with 0 percent label noise level, batch size=128, for 20 epochs run the following command:

python3 experiments.py --dataset cifar10 --numsamples 12800 --batchsize 128 --corruptprob 0 --numepochs 20 --model resnet18 --filename <filename.data>

The results will be saved in <filename.data>. To plot the figures of each experiment run results.ipynb file while reading the <filename.data> file of your choice.

Access to the paper

You can find the full version of the paper (including appendices) at https://arxiv.org/pdf/2107.06665.pdf and the published version at https://2021.ecmlpkdd.org/wp-content/uploads/2021/07/sub_1075.pdf.

Citation

To cite our work please use:

@article{forouzesh2021disparity,
  title={Disparity Between Batches as a Signal for Early Stopping},
  author={Forouzesh, Mahsa and Thiran, Patrick},
  journal={arXiv preprint arXiv:2107.06665},
  year={2021}
}

disparity_early_stopping's People

Contributors

federicoparra avatar mahf93 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.