-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathexperiment_django.py
More file actions
70 lines (63 loc) · 3.29 KB
/
experiment_django.py
File metadata and controls
70 lines (63 loc) · 3.29 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import subprocess
if __name__ == '__main__':
# with unary closures
# subprocess.run("python main.py -dataset django -cuda -syntax dependency "
# "-output_dir ./results/django/unary_closures/dependency "
# "-batch_size 50 "
# "-unary_closures "
# "-decode_max_time_step 100 "
# "-max_example_action_num 100 "
# "-data_dir ./preprocessed/django", shell=True)
# subprocess.run("python main.py -dataset django -cuda -syntax pcfg "
# "-output_dir ./results/django/unary_closures/pcfg "
# "-batch_size 50 "
# "-unary_closures "
# "-decode_max_time_step 100 "
# "-max_example_action_num 100 "
# "-data_dir ./preprocessed/django", shell=True)
# subprocess.run("python main.py -dataset django -cuda -syntax ccg "
# "-output_dir ./results/django/unary_closures/ccg "
# "-batch_size 50 "
# "-unary_closures "
# "-decode_max_time_step 100 "
# "-max_example_action_num 100 "
# "-data_dir ./preprocessed/django", shell=True)
#
# subprocess.run("python main.py -dataset django -cuda -encoder bi-lstm-dropout "
# "-output_dir ./results/django/unary_closures/bilstm "
# "-batch_size 50 "
# "-unary_closures "
# "-decode_max_time_step 100 "
# "-max_example_action_num 100 "
# "-data_dir ./preprocessed/django", shell=True)
# without unary closures
# subprocess.run("python main.py -dataset django -cuda -syntax dependency "
# "-output_dir ./results/django/no_unary_closures/dependency "
# "-batch_size 50 "
# "-no_unary_closures "
# "-decode_max_time_step 100 "
# "-max_example_action_num 100 "
# "-data_dir ./preprocessed/django", shell=True)
# subprocess.run("python main.py -dataset django -cuda -syntax pcfg "
# "-output_dir ./results/django/no_unary_closures/pcfg "
# "-batch_size 50 "
# "-no_unary_closures "
# "-decode_max_time_step 100 "
# "-max_example_action_num 100 "
# "-data_dir ./preprocessed/django", shell=True)
# subprocess.run("python main.py -dataset django -cuda -syntax ccg "
# "-output_dir ./results/django/no_unary_closures/ccg "
# "-batch_size 50 "
# "-no_unary_closures "
# "-decode_max_time_step 100 "
# "-max_example_action_num 100 "
# "-data_dir ./preprocessed/django", shell=True)
#
subprocess.run("python main.py -dataset django -cuda -encoder bi-lstm-dropout "
"-syntax dependency "
"-output_dir ./results/django/final/bilstm "
"-batch_size 50 "
"-no_unary_closures "
"-decode_max_time_step 100 "
"-max_example_action_num 100 "
"-data_dir ./preprocessed/django", shell=True)