-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_all_experiments.py
56 lines (40 loc) · 1.91 KB
/
run_all_experiments.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
51
52
53
54
55
56
import os
print(">>>>>>>>>> COMPILE RUST BINARIES")
os.system("cargo build --release")
# first case study
print("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
print(">>>>>>>>>> CASE STUDY 1, INITIAL VARIANT OF THE SKETCH")
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n")
os.system("./target/release/case-study-tlgl")
print("./target/release/case-study-tlgl")
print("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
print(">>>>>>>>>> CASE STUDY 1, REFINED VARIANT OF THE SKETCH")
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n")
os.system("./target/release/case-study-tlgl -r")
# second case study
print("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
print(">>>>>>>>>> CASE STUDY 2, VARIANT OF THE SKETCH WITH FIXED-POINT PROPERTIES ONLY")
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n")
os.system("./target/release/case-study-arabidopsis")
print("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
print(">>>>>>>>>> CASE STUDY 2, VARIANT OF THE SKETCH WITH COMPLEX PROPERTIES")
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n")
os.system("./target/release/case-study-arabidopsis -m")
# scalability benchmarks
# all models are in the sub-folders in the same directory
BENCH_DIR = "benchmark_models"
# all files in benchmark sub-folders are named in a same way
MODEL_FILE = "model_parametrized.aeon"
GOAL_MODEL_FILE = "model_concrete.aeon"
ATTRACTORS_FILE = "attractor_states.txt"
print("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
print(">>>>>>>>>> START SCALABILITY BENCHMARKS RUN")
print(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n")
# run computation for each scalability benchmark, from smallest to largest
for model in ["celldivb_9v", "eprotein_35v", "nsp4_60v", "etc_84v", "interferon1_121v", "nsp9_252v", "macrophage_321v"]:
print("==========================")
print(f"Model {model}")
print("==========================\n")
MODEL_DIR=f"{BENCH_DIR}/{model}"
os.system(f"./target/release/inference-with-attractors {MODEL_DIR}/{MODEL_FILE} {MODEL_DIR}/{ATTRACTORS_FILE} -g {MODEL_DIR}/{GOAL_MODEL_FILE}")
print()