Giter Club home page Giter Club logo

deepmcdd's Introduction

Multi-class Data Description (Deep-MCDD) for Out-of-distribution Detection

This is the author code of "Multi-class Data Description for Out-of-distribution Detection". Some codes are implemented based on Deep Mahalanobis Detector.

Overview

Downloading tabular datasets

The four multi-class tabular datsets reported in the paper can be downloaded from the below links. We provide the preprocessed version of the datasets, which are converted into the numpy array format, to allow users to easily load them. For more details of the datasets, please refer to the UCI repository. Place them in the directory ./table_data/.

Downloading image datasets

The three in-distribution datasets (i.e., SVHN, CIFAR-10, and CIFAR-100) would be automatically downloaded via torchvision. We use the download links of two additional out-of-distributin datasets (i.e., TinyImageNet and LSUN) from Deep Mahalanobis Detector and ODIN Detector. Place them in the directory ./image_data/.

Running the codes

  • python
  • torch (GPU version only)

Training MLP with Deep-MCDD for tabular data

python train_deepmcdd_table.py --dataset gas --net_type mlp --oodclass_idx 0

Training CNN with Deep-MCDD for image data

python train_deepmcdd_image.py --dataset cifar10 --net_type resnet

Citation

@inproceedings{lee2020multi,
  author = {Lee, Dongha and Yu, Sehun and Yu, Hwanjo},
  title = {Multi-Class Data Description for Out-of-Distribution Detection},
  year = {2020},
  booktitle = {Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining},
  pages = {1362โ€“1370}
}

deepmcdd's People

Contributors

donalee avatar

Watchers

 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.