-
Notifications
You must be signed in to change notification settings - Fork 4
/
train_freesolv.py
46 lines (42 loc) · 1.16 KB
/
train_freesolv.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from train.lipop_trainer import train_lipop
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--seed', type=int, default=12345)
parser.add_argument('--pos', type=int, default=1)
arg = parser.parse_args()
seed = arg.seed
pos = arg.pos
PE_PATH = 'net/0909.pt'
RDKIT_PATH = 'net/rdkit.pt'
if pos == 1:
pep = PE_PATH
tag = 'freesolv_pos@{}'.format(seed)
elif pos == 2:
pep = RDKIT_PATH
tag = 'freesolv_rdpos@{}'.format(seed)
else:
pep = ''
tag = 'freesolv_nopos@{}'.format(seed)
train_lipop(seed=seed,
use_cuda=True,
limit=-1,
use_tqdm=False,
force_save=False,
position_encoder_path=pep,
tag=tag,
dataset='FreeSolv',
special_config={
'LR': 10 ** -2.5,
'GAMMA': 0.995,
'DECAY': 10 ** -5.0,
'DROPOUT': 0.2,
'ITERATION': 400,
'BATCH': 1,
'PACK': 128,
'EVAL': 2000,
'HE_DIM': 120,
'C_DIMS': [120, 120],
'F_DIM': 120,
'M_RADIUS': 2,
},
)