Giter Club home page Giter Club logo

pcs's Introduction

Good news! We provided a colab playground where you can build your own Predecessors Combination and see its perforamnce!

A PyTorch implementation for Calibrating a Deep Neural Network with Its Predecessors. Licensed under the Apache License, Version 2.0.

This project is based on Focal Calibration.

Requirements

Python >= 3.7.5, PyTorch == 1.3.1, torchvision == 0.4.2

Instruction

  • train_search.py: search for architectures;
python train_search.py --epochs=350 --seed=1 --warm_up_population=100 --gumbel_scale=1e-1 --arch_learning_rate=1e-2 --memory_size=100 --predictor_warm_up=500 --dataset_name=cifar10 --model_name=resnet50 --ftlr=1e-3
  • train.py: train models;
python train.py --model resnet50 --dataset-root DATASET_DIR --loss cross_entropy
  • test_combination.py: test predecessor combinations;
python test_combination.py --dataset cifar10 --model resnet50 --tune_epoch 1 --combination 186,313,299,139,189 -log --weight_folder WEIGHT_DIR --lr=1e-4

Citations

If you are using the code/data in this repo, please consider citing:

@misc{tao2023calibrating,
      title={Calibrating a Deep Neural Network with Its Predecessors}, 
      author={Linwei Tao and Minjing Dong and Daochang Liu and Changming Sun and Chang Xu},
      year={2023},
      eprint={2302.06245},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
      }

pcs's People

Contributors

linwei94 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.