Skip to content
forked from junhongmit/FraudGT

For replication of FraudGT for a Thesis project

Notifications You must be signed in to change notification settings

adagige/FraudGT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FraudGT: A Simple, Effective, and Efficient Graph Transformer for Financial Fraud Detection

framework This repository holds the code for FraudGT framework.

Environment Setup

You can create a conda environment to easily run the code. For example, we can create a virtual environment named fraudGT:

conda create -n fraudGT python=3.9 -y
conda activate fraudGT

Install the required packages using the following commands:

conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
conda install pyg -c pyg
pip install -r requirements.txt

Run the Code

You will need to firstly specify the dataset path (./data in this example) and log location (./results in this example) by editing the config file provided under ./configs/{dataset_name}/. An example configuration is

......
out_dir: ./results
dataset:
  dir: ./data
......

Download and unzip the Anti-Money Laundering dataset into your specified dataset path (for example, put the unzipped HI-small.csv into ./data). Dataset will be automatically processed at the first run.

experiments

For convenience, a script file is created to run the experiment with specified configuration. For instance, you can edit and run the interactive_run.sh to start the experiment.

cd FraudGT
chmox +x ./run/interactive_run.sh
./run/interactive_run.sh

About

For replication of FraudGT for a Thesis project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.0%
  • Shell 2.0%