-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_tables_main_paper.py
32 lines (23 loc) · 1.25 KB
/
create_tables_main_paper.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
from experiments.running_time_prediction.config import CONFIG_RUNNING_TIME_REGRESSION, CONFIG_TIMEOUT_CLASSIFICATION, \
CONFIG_DYNAMIC_ALGORITHM_TERMINATION
from src.util.tables import create_timeouts_table, \
create_timeout_termination_table, create_benchmark_overview_table
if __name__ == "__main__":
thresh = .99
table_timeouts_continuous_feature_collection = create_timeouts_table(
results_path=CONFIG_DYNAMIC_ALGORITHM_TERMINATION["RESULTS_PATH"],
thresholds=[thresh]
)
with open(f"./tables/table_metrics_adaptive_timeout_classification_{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_dynamic_timeout_termination_{thresh}.csv", 'w', encoding='u8') as f:
f.write(table_timeout_termination)
table_benchmark_overview = create_benchmark_overview_table(
results_path=CONFIG_DYNAMIC_ALGORITHM_TERMINATION["RESULTS_PATH"],
)
with open(f"./tables/benchmark_overview.csv", 'w', encoding='u8') as f:
f.write(table_benchmark_overview)