-
Notifications
You must be signed in to change notification settings - Fork 93
Program: Transaction Network Generator
hkanezashi edited this page Aug 21, 2019
·
11 revisions
Transaction network generator is a Python script to generate a network topology for the simulator.
- Python package
- NetworkX 1.11 (2.x will not work)
Please see the "input" section in the configuration file conf.json.
{
//...
"input": {
"directory": "paramFiles/1K", // Parameter directory
"schema": "schema.json", // Configuration file of output CSV schema
"accounts": "accounts.csv", // Account list parameter file
"alert_patterns": "alertPatterns.csv", // Alert list parameter file
"degree": "degree.csv", // Degree sequence parameter file
"transaction_type": "transactionType.csv", // Transaction type list file
"is_aggregated_accounts": true // Whether the account list represents aggregated (true) or raw (false) accounts
},
//...
}Please find the following CSV files under paramFiles directory.
The description of the data schema is here.
-
accounts.csv: Account parameter file -
alertPatterns.csv: Alert (fraud) transaction pattern parameter file -
degree.csv: Degree distribution parameter file -
transactionType.csv: Transaction distribution parameter file
cd /path/to/AMLSim
python3 scripts/transaction_graph_generator.py conf.jsonThe argument of this script is the configuration file path.