Giter VIP home page Giter VIP logo

gadam's Introduction

GADAM

This is the code associated with the submission "Boosting Graph Anomaly Detection with Adaptive Message Passing".

1. Dependencies (with python >= 3.8):

conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 cudatoolkit=11.6 -c pytorch -c conda-forge
conda install -c dglteam/label/cu116 dgl
conda install scikit-learn
pip install pygod

2. Datasets

We provide five benchmark datasets containing injected anomalies: Cora, Citeseer, Pubmed, ACM and BlogCatalog, as well as two real-world datasets containing organic anomalies: books and reddit, which can be found in data/data.rar. Anomalies are injected through the unified interface provided by the pygod library. Two OGB datasets ogbn-arxiv and ogbn-products are not included due to memory limits.

2.1 Preprocessed data

We recommend using preprocessed data for fair comparasion, unzip data/data.rar and make directory structure as follows:

└─data
    │      Cora.bin
    │      Citeseer.bin
    │      ...
└─run.py

2.2 Customized data

For two OGB datasets or customized dataset, contextual and structural anomalies can be generated via 'pygod.generator'. See https://docs.pygod.org/en/latest/pygod.generator.html for details.

3. Anomaly detection

Run python run.py --data Cora --local-lr 1e-3 --local-epochs 100 --global-lr 5e-4 --global-epochs 50 to perform anomaly detection.

gadam's People

Contributors

jakchen797 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

Rong Gu avatar Guanghui.Zhu avatar  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.