Code Monkey home page Code Monkey logo

latentoe-ad's Introduction

Latent Outlier Exposure for Anomaly Detection with Contaminated Data (LOE)

This is the companion code for a PyTorch implementation of Latent Outlier Exposure reported in the paper Latent Outlier Exposure for Anomaly Detection with Contaminated Data by Chen Qiu et al. The paper is published in ICML 2022 and can be found here https://arxiv.org/abs/2202.08088. The code allows the users to reproduce and extend the results reported in the study. Please cite the above paper when reporting, reproducing or extending the results.

Purpose of the project

This software is a research prototype, solely developed for and published as part of the publication cited above. It will neither be maintained nor monitored in any way.

Reproduce the Results

This repo contains the code of experiments with LOE on various data types including image data and tabular data. The implementation of the backbone anomaly detector (Neural Transformation Learning) is based on the code from https://github.com/boschresearch/NeuTraL-AD.

Please run the command and replace $# with available options (see below):

python Launch_Exps.py --config-file $1 --dataset-name $2  --contamination $3

config-file:

  • config_cifar10.yml; config_fmnist.yml; config_thyroid.yml; config_arrhy.yml;

dataset-name:

  • cifar10 (image); fmnist (image); thyroid (tabular); arrhythmia (tabular);

contamination:

  • The ground-truth contamination ratio of the dataset. The default ratio is 0.1.

How to Use

  1. When using your own data, please put your data files under DATA.

  2. Create a config file which contains your hyper-parameters under config_files.

  3. Add your data loader to the function ''load_data'' in the loader/LoadData.py.

  • The shape is (batch size, feature dim).

Datasets

License

Latent Outlier Exposure for Anomaly Detection with Contaminated Data (LOE) is open-sourced under the AGPL-3.0 license. See the LICENSE file for details.

For a list of other open source components included in Latent Outlier Exposure for Anomaly Detection with Contaminated Data (LOE) , see the file 3rd-party-licenses.txt.

latentoe-ad's People

Contributors

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