The AMLSim project is intended to provide a multi-agent based simulator that generates synthetic banking transaction data together with a set of known money laundering patterns - mainly for the purpose of testing machine learning models and graph algorithms. We welcome you to enhance this effort since the data set related to money laundering is critical to advance detection capabilities of money laundering activities.
Apache License 2.0
263
stars
82
forks
source link
Unable to visualize the transaction simulation #41
I am expecting to visualize the network generated and the simulation of the transaction with some alerted groups. However even though the simulation results appears on the terminal, the transaction simulation is not visualized
I am using jupyter notebook
After running the command
!sh scripts/run_AMLSim.sh conf.json
General transaction interval: 7
Base transaction amount: Normal = 100.000000, Suspicious= 1000.000000
Random seed: 0
Simulation name: sample
Working directory: tmp/sample/
Dec 03, 2020 4:19:02 PM amlsim.AMLSim parseArgs
INFO: PaySim Properties File: paramFiles/paysim.properties
Dec 03, 2020 4:19:02 PM amlsim.AMLSim parseArgs
INFO: PaySim Properties File: paramFiles/paysim.properties
Dec 03, 2020 4:19:02 PM amlsim.AMLSim parseArgs
INFO: Simulation Steps: 720
Dec 03, 2020 4:19:02 PM amlsim.AMLSim parseArgs
INFO: Simulation Steps: 720
Norm: 100 Case: 50
Dec 03, 2020 4:19:02 PM amlsim.AMLSim initSimulatorName
INFO: Simulator Name: sample
Dec 03, 2020 4:19:02 PM amlsim.AMLSim initSimulatorName
INFO: Simulator Name: sample
Dec 03, 2020 4:19:02 PM amlsim.AMLSim initSimulatorName
WARNING: Output log directory already exists: tmp/sample/
Dec 03, 2020 4:19:02 PM amlsim.AMLSim initSimulatorName
WARNING: Output log directory already exists: tmp/sample/
Dec 03, 2020 4:19:02 PM amlsim.AMLSim executeSimulation
INFO: Transaction log file: tmp/sample/tx_log.csv
Dec 03, 2020 4:19:02 PM amlsim.AMLSim executeSimulation
INFO: Transaction log file: tmp/sample/tx_log.csv
PAYSIM: Financial Simulator v1.0
Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAccountFile
INFO: Account CSV header: ACCOUNT_ID,CUSTOMER_ID,INIT_BALANCE,START_DATE,END_DATE,COUNTRY,ACCOUNT_TYPE,IS_SAR,TX_BEHAVIOR_ID,BANK_ID
Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAccountFile
INFO: Account CSV header: ACCOUNT_ID,CUSTOMER_ID,INIT_BALANCE,START_DATE,END_DATE,COUNTRY,ACCOUNT_TYPE,IS_SAR,TX_BEHAVIOR_ID,BANK_ID
Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAccountFile
INFO: Number of total accounts: 1000
Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAccountFile
INFO: Number of total accounts: 1000
Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAlertMemberFile
INFO: Load alert member list from:tmp/sample/alert_members.csv
Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAlertMemberFile
INFO: Load alert member list from:tmp/sample/alert_members.csv
InInit TagName: 1
NrOfMerchants: 34749
Seed: 1607012342331
parameterFilePath /Users/annalisa/GitHub/AMLSim//paramFiles//AggregateTransaction.csv
Inputting this paramfile:
NrOfMerchants: 1737.45
NrOfFraudsters: 50.0
Starting PaySim Running for 720 steps. Current loop:0
****Time Step 100, 0 [s]
Time Step 200, 0 [s]
Time Step 300, 0 [s]
Time Step 400, 0 [s]
Time Step 500, 0 [s]
Time Step 600, 1 [s]
Time Step 700, 1 [s]
*** - Finished running 720 steps
| Indicator | Orig | Synth | Error Rate |
| NR OF TRANS | | | |
| CASH_IN 0.0 0.0 �
| CASH_OT 0.0 0.0 �
| TRANS | 0.0 0.0 � |
| PAYM | 0.0 | 0 | � |
| DEB | 0.0 | 0.0 | � |
I am expecting to visualize the network generated and the simulation of the transaction with some alerted groups. However even though the simulation results appears on the terminal, the transaction simulation is not visualized I am using jupyter notebook
After running the command !sh scripts/run_AMLSim.sh conf.json
General transaction interval: 7 Base transaction amount: Normal = 100.000000, Suspicious= 1000.000000 Random seed: 0 Simulation name: sample Working directory: tmp/sample/ Dec 03, 2020 4:19:02 PM amlsim.AMLSim parseArgs INFO: PaySim Properties File: paramFiles/paysim.properties Dec 03, 2020 4:19:02 PM amlsim.AMLSim parseArgs INFO: PaySim Properties File: paramFiles/paysim.properties Dec 03, 2020 4:19:02 PM amlsim.AMLSim parseArgs INFO: Simulation Steps: 720 Dec 03, 2020 4:19:02 PM amlsim.AMLSim parseArgs INFO: Simulation Steps: 720 Norm: 100 Case: 50 Dec 03, 2020 4:19:02 PM amlsim.AMLSim initSimulatorName INFO: Simulator Name: sample Dec 03, 2020 4:19:02 PM amlsim.AMLSim initSimulatorName INFO: Simulator Name: sample Dec 03, 2020 4:19:02 PM amlsim.AMLSim initSimulatorName WARNING: Output log directory already exists: tmp/sample/ Dec 03, 2020 4:19:02 PM amlsim.AMLSim initSimulatorName WARNING: Output log directory already exists: tmp/sample/ Dec 03, 2020 4:19:02 PM amlsim.AMLSim executeSimulation INFO: Transaction log file: tmp/sample/tx_log.csv Dec 03, 2020 4:19:02 PM amlsim.AMLSim executeSimulation INFO: Transaction log file: tmp/sample/tx_log.csv PAYSIM: Financial Simulator v1.0
Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAccountFile INFO: Account CSV header: ACCOUNT_ID,CUSTOMER_ID,INIT_BALANCE,START_DATE,END_DATE,COUNTRY,ACCOUNT_TYPE,IS_SAR,TX_BEHAVIOR_ID,BANK_ID Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAccountFile INFO: Account CSV header: ACCOUNT_ID,CUSTOMER_ID,INIT_BALANCE,START_DATE,END_DATE,COUNTRY,ACCOUNT_TYPE,IS_SAR,TX_BEHAVIOR_ID,BANK_ID Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAccountFile INFO: Number of total accounts: 1000 Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAccountFile INFO: Number of total accounts: 1000 Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAlertMemberFile INFO: Load alert member list from:tmp/sample/alert_members.csv Dec 03, 2020 4:19:02 PM amlsim.AMLSim loadAlertMemberFile INFO: Load alert member list from:tmp/sample/alert_members.csv InInit TagName: 1 NrOfMerchants: 34749 Seed: 1607012342331 parameterFilePath /Users/annalisa/GitHub/AMLSim//paramFiles//AggregateTransaction.csv
Inputting this paramfile:
NrOfMerchants: 1737.45
NrOfFraudsters: 50.0
Starting PaySim Running for 720 steps. Current loop:0 ****Time Step 100, 0 [s] Time Step 200, 0 [s] Time Step 300, 0 [s] Time Step 400, 0 [s] Time Step 500, 0 [s] Time Step 600, 1 [s] Time Step 700, 1 [s] *** - Finished running 720 steps
| Indicator | Orig | Synth | Error Rate |
| NR OF TRANS | | | | | CASH_IN 0.0 0.0 �
| CASH_OT 0.0 0.0 �
| TRANS | 0.0 0.0 � | | PAYM | 0.0 | 0 | � | | DEB | 0.0 | 0.0 | � |
| AVG TRANS SIZE | | | | | CASH_IN | � | � | � | | CASH_OT | � | � | � | | TRANS | � | � | � | | PAYM | � | � | � | | DEB | � | � | � |
| TOT ERR RATE | | | � |
NrOfFailed 0 NrOfTrueClients: 0.0 NrOfDaysParticipated 0
It took: 1.89 seconds to execute the simulation
Simulation name: sample