-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ed6134
commit 7cfd5fe
Showing
24 changed files
with
1,195 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import argparse | ||
import os | ||
from flib.sim import DataGenerator | ||
|
||
def main(): | ||
# Parse arguments | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('--conf_file', type=str, help='Path to the config file', default='/home/edvin/Desktop/flib/experiments/param_files/3_banks_homo_mid/conf.json') | ||
args = parser.parse_args() | ||
|
||
generator = DataGenerator(args.conf_file) | ||
def main(conf_file): | ||
generator = DataGenerator(conf_file) | ||
tx_log_file = generator() | ||
print(f'\nSynthetic AML data generated\n Raw transaction log file: {tx_log_file}') | ||
pass | ||
|
||
if __name__ == "__main__": | ||
main() | ||
DATASET = '3_banks_homo_mid' #'30K_accts', '3_banks_homo_mid' | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('--conf_file', type=str, help='Path to the config file', default=f'/home/edvin/Desktop/flib/experiments/param_files/{DATASET}/conf.json') | ||
args = parser.parse_args() | ||
if not os.path.isabs(args.conf_file): | ||
args.conf_file = os.path.abspath(args.conf_file) | ||
main(args.conf_file) |
Oops, something went wrong.