Coder Social home page Coder Social logo

wenn's Introduction

WGAN-ENN

This repository contains the essential code for the paper Multidimensional Uncertainty-Aware Evidential Neural Networks (AAAI 2021).

The code is written by Python 3.8 and pytorch 1.5 in GPU version. It has also been tested under Python 3.6 and pytorch 1.7.

Quick Start

  1. Create folders 'datasets' and 'results' to save downloaded datasets and output results.
  2. Most of the datasets will be downloaded automatically. You can download notMNIST_small You can evaluate on either LSUN_classroom or LSUN_resize. The results are close.
  3. Run test_demo.py

More details

  1. We first pretrain the ENN classfier to reach a good accuracy and then feed it into the alogrithm to calibrate its uncertainty. All the pretrained classifiers are under the folder 'pretrain'. Note that the pretrained ENN models are different from the normal softmax pretrained model. It is trained using Eq.9, not cross-entropy. Please also refer to the pretrain function in main.py.

  2. The repo below contain a lot of baselines considered in our paper. But we change all the base classfier as ResNet-20 in our experiments.

  3. We also provide an example of plotting Figure 4, Figure 5 and Figure 6.

Citation

If you find this repo useful in your research, please consider citing:

@article{hu2020multidimensional,
  title={Multidimensional Uncertainty-Aware Evidential Neural Networks},
  author={Hu, Yibo and Ou, Yuzhe and Zhao, Xujiang and Cho, Jin-Hee and Chen, Feng},
  journal={arXiv preprint arXiv:2012.13676},
  year={2020}
}

wenn's People

Contributors

snowood1 avatar

Forkers

linecomparison

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.