-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexperiments_to_latex.py
58 lines (53 loc) · 3.43 KB
/
experiments_to_latex.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
57
58
from global_ import tos_, data_sets_performance_gb_, data_sets_performance_bb_
from src.experiment_analysis.experiment_analysis import table_results
hp_bpcg_wihb_gb = {'algorithm': 'oavi', 'oracle_type': 'BPCG', 'term_ordering_strategy': tos_, 'border_type': "gb",
'inverse_hessian_boost': 'weak'}
hp_cgavi_ihb_gb = {'algorithm': 'oavi', 'oracle_type': 'CG', 'term_ordering_strategy': tos_, 'border_type': "gb",
'inverse_hessian_boost': 'full'}
hp_agdavi_ihb_gb = {'algorithm': 'oavi', 'oracle_type': 'AGD', 'term_ordering_strategy': tos_, 'border_type': "gb",
'inverse_hessian_boost': 'full'}
hp_abm_gb = {'algorithm': 'oavi', 'oracle_type': 'ABM', 'term_ordering_strategy': tos_, 'border_type': "gb",
'inverse_hessian_boost': 'false'}
hp_vca = {'algorithm': 'vca'}
hp_svm = {'algorithm': 'svm'}
hp_bpcg_wihb_bb = {'algorithm': 'oavi', 'oracle_type': 'BPCG', 'term_ordering_strategy': tos_, 'border_type': "bb",
'inverse_hessian_boost': 'weak'}
hp_cgavi_ihb_bb = {'algorithm': 'oavi', 'oracle_type': 'CG', 'term_ordering_strategy': tos_, 'border_type': "bb",
'inverse_hessian_boost': 'full'}
hp_agdavi_ihb_bb = {'algorithm': 'oavi', 'oracle_type': 'AGD', 'term_ordering_strategy': tos_, 'border_type': "bb",
'inverse_hessian_boost': 'full'}
hp_abm_bb = {'algorithm': 'oavi', 'oracle_type': 'ABM', 'term_ordering_strategy': tos_, 'border_type': "bb",
'inverse_hessian_boost': 'false'}
hps_no_svm = [hp_cgavi_ihb_gb, hp_agdavi_ihb_gb, hp_bpcg_wihb_gb, hp_abm_gb, hp_vca]
hps = hps_no_svm + [hp_svm]
print("############################################################################################")
print("# Performance")
print("############################################################################################")
for key in ["time_train", "time_test", "time_hyper", "error_train", "error_test", 'avg_degree', "G + O",
"total_sparsity"]:
print("-------------------------------------------------------------------------")
print("key: ", key)
if key in ['avg_degree', "G + O", "total_sparsity"]:
table_results(data_sets_performance_gb_, hps_no_svm, key, ordering=False)
else:
table_results(data_sets_performance_gb_, hps, key, ordering=False)
print("############################################################################################")
print("############################################################################################")
print("")
print("")
print("")
print("")
print("")
print("")
print("############################################################################################")
print("# Borders")
print("############################################################################################")
hps_bases = [hp_cgavi_ihb_gb, hp_cgavi_ihb_bb, hp_agdavi_ihb_gb, hp_agdavi_ihb_bb, hp_bpcg_wihb_gb, hp_bpcg_wihb_bb,
hp_abm_gb, hp_abm_bb]
for key in ["time_train", "time_test", "time_hyper", "error_train", "error_test", 'avg_degree', "G + O",
"total_sparsity"]:
print("-------------------------------------------------------------------------")
print("key: ", key)
table_results(data_sets_performance_bb_, hps_bases, key, ordering=False)
print("############################################################################################")
print("############################################################################################")