Code Monkey home page Code Monkey logo

negmgan's Introduction

LinkedIn Twitter

Non-Exhaustive Learning Using Gaussian Mixture Generative Adversarial Networks

Authors: Jun Zhuang, Mohammad Al Hasan

Paper:

The paper is accepted by ECML-PKDD 2021.

Dataset:

Three public network intrusion datasets "KDD99", "NSLKDD", "UNSWNB15" and one synthetic dataset

Getting Started:

Prerequisites

Linux or macOS, CPU, Python 3, keras, numpy, pandas, scikit-learn.

Clone this repo

git clone https://github.com/junzhuang-code/NEGMGAN.git
cd NEGMGAN/negmgan

Install dependencies

For pip users, please type the command: pip install -r requirements.txt
For Conda users, you may create a new Conda environment using: conda env create -f environment.yml

Directories

negmgan:
  1. gen_Data.py: Generate qualified dataset from raw data
  2. preproc.py: Preprocessing the given datasets
  3. utils.py: Utils modules
  4. model_GMGAN.py: GM-GAN Models
  5. model_Imeans.py: I-means Model
  6. ablation_ExtractUCs.py: Ablation study -- Implement GM-GAN to extract UCs on streaming data.
  7. ablation_DetectUCs.py: Ablation study -- Implement I-means algorithm to detect the number of new emerging classes on streaming data.
  8. main.py: Implement NE-GM-GAN on one streaming batch data.

Runs

  1. Generate datasets
    python [script_name] -DATA_NAME -DATA_DIR
    e.g., python gen_Data.py KDD99 ../data/

  2. Ablation study

  • Extract UCs: python ablation_ExtractUCs.py KDD99 1000
  • Detect UCs: python ablation_DetectUCs.py Syn 2 10 3 200
  1. Main function
    python [script_name] -DATA_NAME -NUM_EPOCHS -Z -WS
    e.g., python main.py Syn 1500 3 200

negmgan's People

Contributors

junzhuang-code avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pa-wan

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.