Coder Social home page Coder Social logo

diam's Introduction

DIAM

This repository is an official PyTorch(Geometric) implementation of DIAM in "Effective Illicit Account Detection on Large Directed MultiGraph Transaction Networks of Cryptocurrencies".

Framework

Requirements

  • Python==3.9
  • torch==1.12.0+cu116
  • torch-geometric==2.2.0
  • scikit-learn==1.1.1
  • scipy==1.8.1
  • numpy==1.22.4
  • dgl-cu116==0.8.2.post1

Data

Dataset #Nodes #Edges #Edge attribute #Illicit #Normal Illicit:Normal
Ethereum-S 1,329,729 6,794,521 2 1,660 1,700 1:1.02
Ethereum-P 2,973,489 13,551,303 2 1,165 3,418 1:2.93
Bitcoin-M 2,505,841 14,181,316 5 46,930 213,026 1:4.54
Bitcoin-L 20,085,231 203,419,765 8 362,391 1,271,556 1: 3.51

The four datasets can be downloaded here: datasets

Usage

  1. Download and extract data files to /data folder.

  2. Generate edge sequences.

    python3 preprocess.py

  3. Run DIAM.

    python3 main.py

diam's People

Contributors

tommydzh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.