summaryrefslogtreecommitdiff
path: root/bin/eval-outlier-removal.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-13 16:33:00 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-13 16:33:00 +0100
commit906a01beeb24fafa691f585018a0ec809a88de08 (patch)
tree006a3c421c8360d6b3be71710ab7549b99f6bce5 /bin/eval-outlier-removal.py
parentdf1beb6debcd7c527d49a1a722b023b29f38b859 (diff)
add generic monte carlo cross validation
Diffstat (limited to 'bin/eval-outlier-removal.py')
-rwxr-xr-xbin/eval-outlier-removal.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/eval-outlier-removal.py b/bin/eval-outlier-removal.py
index eafb0da..2bf8072 100755
--- a/bin/eval-outlier-removal.py
+++ b/bin/eval-outlier-removal.py
@@ -9,11 +9,11 @@ from dfatool import PTAModel, RawData, soft_cast_int, pta_trace_to_aggregate
opts = {}
def model_quality_table(result_lists, info_list):
- for state_or_tran in result_lists[0]['by_dfa_component'].keys():
- for key in result_lists[0]['by_dfa_component'][state_or_tran].keys():
+ for state_or_tran in result_lists[0]['by_name'].keys():
+ for key in result_lists[0]['by_name'][state_or_tran].keys():
buf = '{:20s} {:15s}'.format(state_or_tran, key)
for i, results in enumerate(result_lists):
- results = results['by_dfa_component']
+ results = results['by_name']
info = info_list[i]
buf += ' ||| '
if info == None or info(state_or_tran, key):
@@ -27,12 +27,12 @@ def model_quality_table(result_lists, info_list):
print(buf)
def combo_model_quality_table(result_lists, info_list):
- for state_or_tran in result_lists[0][0]['by_dfa_component'].keys():
- for key in result_lists[0][0]['by_dfa_component'][state_or_tran].keys():
+ for state_or_tran in result_lists[0][0]['by_name'].keys():
+ for key in result_lists[0][0]['by_name'][state_or_tran].keys():
for sub_result_lists in result_lists:
buf = '{:20s} {:15s}'.format(state_or_tran, key)
for i, results in enumerate(sub_result_lists):
- results = results['by_dfa_component']
+ results = results['by_name']
info = info_list[i]
buf += ' ||| '
if info == None or info(state_or_tran, key):