diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-10-08 08:21:52 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-10-08 08:21:52 +0200 |
commit | 3b0db299a77956ddaa1c9734e56d31eb3b245253 (patch) | |
tree | ad11d6ce083e04c3f87370ee7f671d21cc7a5453 | |
parent | 5d0fdb101f3c23b3df1b5ab9cb2c85dd41edb25f (diff) |
analyze-archive: Add --param-info option
-rw-r--r--[-rwxr-xr-x] | bin/analyze-archive.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 69eab6e..47fabd4 100755..100644 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -21,6 +21,9 @@ Options: parameters. Also plots the corresponding measurements. If gplearn function is set, it is plotted using dashed lines. +--param-info + Show parameter names and values + --show-models=<static|paramdetection|param|all|tex|html> static: show static model values as well as parameter detection heuristic paramdetection: show stddev of static/lut/fitted model @@ -215,7 +218,7 @@ if __name__ == '__main__': try: optspec = ( - 'plot-unparam= plot-param= show-models= show-quality= ' + 'plot-unparam= plot-param= param-info show-models= show-quality= ' 'ignored-trace-indexes= discard-outliers= function-override= ' 'filter-param= ' 'cross-validate= ' @@ -282,6 +285,12 @@ if __name__ == '__main__': if xv_method: xv = CrossValidator(PTAModel, by_name, parameters, arg_count) + if 'param-info' in opts: + for state in model.states(): + print('{}:'.format(state)) + for param in model.parameters(): + print(' {} = {}'.format(param, model.stats.distinct_values[state][param])) + if 'plot-unparam' in opts: for kv in opts['plot-unparam'].split(';'): state_or_trans, attribute, ylabel = kv.split(':') |