Giter Site home page Giter Site logo

mala-lab / act Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qz-wang/act

0.0 0.0 1.0 17.97 MB

The official PyTorch implementation of Cross-Domain Graph Anomaly Detection via Anomaly-aware Contrastive Alignment (AAAI2023, to appear).

Shell 0.25% Python 99.75%
anomaly-detection cross-domain-adaptation graph-anomaly-detection cross-domain-anomaly-detection

act's Introduction

Cross-Domain Graph Anomaly Detection via Anomaly-aware Contrastive Alignment (ACT)

PyTorch

The official PyTorch implementation of Cross-Domain Graph Anomaly Detection via Anomaly-aware Contrastive Alignment, AAAI2023, to appear.

By Qizhou Wang, Guansong Pang, Mahsa Salehi, Wray Buntine and Christopher Leckie.

drawing

t-SNE visualisation of a CD GAD dataset before (a) and after (b) our anomaly-aware contrastive alignment. Compared to (a) where the two domains show clear discrepancies in different aspects like anomaly distribution, in (b) our domain alignment approach effectively aligns the normal class, while pushing away the anomalous nodes in both source and target domains from the normal class.

Requirements

  • python==3.8.12
  • pytorch==1.8.0
  • pytorch geometric==2.0.1
  • numpy==1.21.2
  • scipy==1.7.1
  • cudatoolkit==11.1.1
  • scikit-learn==1.0.1
  • geomloss==0.2.4

    Instructions

    Miniconda/Anaconda is recommended for setting up the dependencies.

    git clone https://github.com/QZ-WANG/ACT
    cd ACT
    conda env create -f env/environment.yml

    To set up the dataset directories, place the data files as the following:

    datasets/
    ├── Amazon
    │   └── Amazon.mat
    ├── YelpHotel
    │   └── YelpHotel.mat
    ├── YelpNYC
    │   └── YelpNYC.mat
    └── YelpRes
        └── YelpRes.mat
    

    The authors of COMMANDER (Ding et al. 2021) have kindly allowed us to share the datasets. Please ensure appropriate citations when using the datasets.

    Getting started

    To run the framework:

    chmod +x ./script/pipeline.sh
    ./script/pipeline.sh <name-of-pipeline-config-file>

    Please see the sample meta config file in ./exp/pipelines/config.

    Acknowledgement

    We thank the authors of COMMANDER (Ding et al. 2021) for sharing the datasets. This repository is developed using PyTorch Geometric.

  • act's People

    Forkers

    kumararjun

    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.