Giter Club home page Giter Club logo

dygcn's Introduction

基于动态图神经网络的异常流量检测方法DyGCN

论文成果:DyGCN.pdf

实验数据集

CIC-IDS 2017:https://www.unb.ca/cic/datasets/ids-2017.html

CSE-CIC-IDS 2018: https://www.unb.ca/cic/datasets/ids-2018.html

将下载的数据集放在 /data 目录下。对于CSE-CIC-IDS 2018数据集,只使用“Thuesday-20-02-2018_TrafficForML_CICFlowMeter.csv”这一天的数据,因为其他数据文件不包含IP,无法建图。

动态图模型的作用在于进行子图嵌入,子图嵌入的结果可以用异常检测模型进行异常判断。

其他对比模型的代码在/compare_models目录下

模型训练

基于cic2017数据集进行模型训练

python DyGCN/main.py --mode train --ck_path DyGCN/savedmodel/model.pt --embs_path DyGCN/data/graph_embs.pt --dataset data/cic2017

模型测试

基于cic2017数据集进行模型测试

python DyGCN/main.py --mode test --ck_path DyGCN/savedmodel/model.pt --embs_path DyGCN/data/graph_embs.pt --dataset data/cic2017

异常检测

基于模型图嵌入结果进行异常检测

python DyGCN/intrusion_detection.py --dataset cic2017

dygcn's People

Contributors

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