forked from Messi-Q/ReChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathP001_parser.py
16 lines (12 loc) · 840 Bytes
/
P001_parser.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import argparse
def parameter_parser():
# Experiment parameters
parser = argparse.ArgumentParser(description='Smart Contracts Reentrancy Detection')
parser.add_argument('-D', '--dataset', type=str, default='train_data/reentrancy_273_directlly_from_dataset.txt')
parser.add_argument('--lr', type=float, default=0.002, help='learning rate')
parser.add_argument('-d', '--dropout', type=float, default=0.2, help='dropout rate')
parser.add_argument('--vector_dim', type=int, default=300, help='dimensions of vector') # droped
parser.add_argument('--epochs', type=int, default=250, help='number of epochs')
parser.add_argument('-b', '--batch_size', type=int, default=16, help='batch size')
parser.add_argument('-th', '--threshold', type=float, default=0.5, help='threshold')
return parser.parse_args()