-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_tables_appendix.py
27 lines (21 loc) · 1.25 KB
/
create_tables_appendix.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
from experiments.running_time_prediction.config import CONFIG_RUNNING_TIME_REGRESSION, CONFIG_TIMEOUT_CLASSIFICATION, \
CONFIG_DYNAMIC_ALGORITHM_TERMINATION
from src.util.tables import create_running_time_regression_table, create_timeouts_table, \
create_timeout_termination_table, create_benchmark_overview_table
table_running_time_regression = create_running_time_regression_table(
results_path=CONFIG_RUNNING_TIME_REGRESSION["RESULTS_PATH"])
with open("./tables/table_running_time_regression.csv", 'w', encoding='u8') as f:
f.write(table_running_time_regression)
for thresh in [.5, .9,]:
table_timeouts_continuous_feature_collection = create_timeouts_table(
results_path=CONFIG_DYNAMIC_ALGORITHM_TERMINATION["RESULTS_PATH"],
thresholds=[thresh]
)
with open(f"./tables/table_timeouts_continuous_feature_collection_{thresh}.csv", 'w', encoding='u8') as f:
f.write(table_timeouts_continuous_feature_collection)
table_timeout_termination = create_timeout_termination_table(
results_path=CONFIG_DYNAMIC_ALGORITHM_TERMINATION["RESULTS_PATH"],
thresholds=[thresh]
)
with open(f"./tables/table_timeout_termination_{thresh}.csv", 'w', encoding='u8') as f:
f.write(table_timeout_termination)