diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-02-13 16:33:00 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-02-13 16:33:00 +0100 |
commit | 906a01beeb24fafa691f585018a0ec809a88de08 (patch) | |
tree | 006a3c421c8360d6b3be71710ab7549b99f6bce5 /bin/eval-rel-energy.py | |
parent | df1beb6debcd7c527d49a1a722b023b29f38b859 (diff) |
add generic monte carlo cross validation
Diffstat (limited to 'bin/eval-rel-energy.py')
-rwxr-xr-x | bin/eval-rel-energy.py | 4 |
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 |