Coder Social home page Coder Social logo

yeonghyeon / ganomaly-tf Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 1.0 4.6 MB

TensorFlow implementation of GANomaly (with MNIST dataset)

License: MIT License

Python 100.00%
generative-adversarial-network anomaly-detection generative-neural-network mnist-dataset

ganomaly-tf's Introduction

[TensorFlow] GANomaly: Semi-Supervised Anomaly Detection via Adversarial Training

TensorFlow implementation of GANomaly with MNIST dataset.
PyTorch Version is also implemented.

Summary

GANomaly architecture

Simplified GANomaly architecture.

Graph in TensorBoard

Graph of GANomaly.

Problem Definition

'Class-1' is defined as normal and the others are defined as abnormal.

Results

Training Procedure


Loss graph in the training procedure.
Each graph shows encoding loss, reconstruction loss, adversarial loss, and total (target) loss respectively.

Restoration result by GANomaly.

Test Procedure

Box plot with encoding loss of test procedure.

Normal samples classified as normal.

Abnormal samples classified as normal.

Normal samples classified as abnormal.

Abnormal samples classified as abnormal.

Environment

  • Python 3.7.4
  • Tensorflow 1.14.0
  • Numpy 1.17.1
  • Matplotlib 3.1.1
  • Scikit Learn (sklearn) 0.21.3

Reference

[1] S Akcay, et al. (2018). Ganomaly: Semi-supervised anomaly detection via adversarial training.. arXiv preprint arXiv:1805.06725.

ganomaly-tf's People

Contributors

yeonghyeon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

deyh2020

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.