/
didi_trial.py
50 lines (45 loc) · 2.24 KB
/
didi_trial.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
47
48
49
50
import os
import warnings
warnings.filterwarnings("ignore")
shared_params_st_mgcn = ('python ST_MGCN_Obj.py '
'--Dataset DiDi '
'--CT 6 '
'--PT 7 '
'--TT 4 '
'--LSTMUnits 64 '
'--LSTMLayers 3 '
'--DataRange All '
'--TrainDays All '
'--TC 0.65 '
'--TD 7500 '
'--TI 30 '
'--Epoch 10000 '
'--Train True '
'--lr 1e-4 '
'--patience 0.1 '
'--ESlength 100 '
'--BatchSize 16 '
'--MergeWay sum '
'--Device 1 ')
if __name__ == "__main__":
"""
Multiple Graphs
"""
# Chengdu
os.system(shared_params_st_mgcn + ' --City Chengdu --K 1 --L 1 '
' --Graph Distance-Correlation-Interaction --MergeIndex 1')
os.system(shared_params_st_mgcn + ' --City Chengdu --K 1 --L 1 '
' --Graph Distance-Correlation-Interaction --MergeIndex 3')
os.system(shared_params_st_mgcn + ' --City Chengdu --K 1 --L 1 '
' --Graph Distance-Correlation-Interaction --MergeIndex 6')
os.system(shared_params_st_mgcn + ' --City Chengdu --K 1 --L 1 '
' --Graph Distance-Correlation-Interaction --MergeIndex 12')
# Xian
os.system(shared_params_st_mgcn + ' --City Xian --K 1 --L 1 '
' --Graph Distance-Correlation-Interaction --MergeIndex 1')
os.system(shared_params_st_mgcn + ' --City Xian --K 1 --L 1 '
' --Graph Distance-Correlation-Interaction --MergeIndex 3')
os.system(shared_params_st_mgcn + ' --City Xian --K 1 --L 1 '
' --Graph Distance-Correlation-Interaction --MergeIndex 6')
os.system(shared_params_st_mgcn + ' --City Xian --K 1 --L 1 '
' --Graph Distance-Correlation-Interaction --MergeIndex 12')