summaryrefslogtreecommitdiff
path: root/bin/eval-rel-energy.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-rel-energy.py
parentdf1beb6debcd7c527d49a1a722b023b29f38b859 (diff)
add generic monte carlo cross validation
Diffstat (limited to 'bin/eval-rel-energy.py')
-rwxr-xr-xbin/eval-rel-energy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/eval-rel-energy.py b/bin/eval-rel-energy.py
index ea7a226..123fe9f 100755
--- a/bin/eval-rel-energy.py
+++ b/bin/eval-rel-energy.py
@@ -84,8 +84,8 @@ if __name__ == '__main__':
lut_quality = model.assess(model.get_param_lut())
for trans in model.transitions():
- absolute_quality = lut_quality['by_dfa_component'][trans]['energy']
- relative_quality = lut_quality['by_dfa_component'][trans]['rel_energy_prev']
+ absolute_quality = lut_quality['by_name'][trans]['energy']
+ relative_quality = lut_quality['by_name'][trans]['rel_energy_prev']
if absolute_quality['mae'] < relative_quality['mae']:
best = 'absolute'
score_absolute += 1