summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-08 10:50:42 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-08 10:50:42 +0100
commitde9fde3a1283d744ceaa5cd53685bb99e9b3f52a (patch)
treeff016fdb6b449ef6f0ed55e20f36669a01dafcfc
parent2db31a8adac549f2bdc1d2c204b16bc2f815eff3 (diff)
fix eval-outlier-removal to account for not-so-recent PTAModel.assess changes
-rwxr-xr-xbin/eval-outlier-removal.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/eval-outlier-removal.py b/bin/eval-outlier-removal.py
index b6e8733..eafb0da 100755
--- a/bin/eval-outlier-removal.py
+++ b/bin/eval-outlier-removal.py
@@ -9,10 +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].keys():
- for key in result_lists[0][state_or_tran].keys():
+ 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():
buf = '{:20s} {:15s}'.format(state_or_tran, key)
for i, results in enumerate(result_lists):
+ results = results['by_dfa_component']
info = info_list[i]
buf += ' ||| '
if info == None or info(state_or_tran, key):
@@ -26,11 +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].keys():
- for key in result_lists[0][0][state_or_tran].keys():
+ 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 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']
info = info_list[i]
buf += ' ||| '
if info == None or info(state_or_tran, key):