diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-25 11:41:35 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-07-25 11:41:35 +0200 |
commit | e0609155a809167cb260a441f708362a189852ab (patch) | |
tree | 7d4289cb9a0f73072b0085e038bdbf761c1b03ca /bin | |
parent | 06d4b31d438c69dd47164c3661f3497fb5e869cb (diff) |
analyze-timing: add function argument support
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-timing.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/analyze-timing.py b/bin/analyze-timing.py index 66a67a8..19940b5 100755 --- a/bin/analyze-timing.py +++ b/bin/analyze-timing.py @@ -188,7 +188,7 @@ if __name__ == '__main__': preprocessed_data = raw_data.get_preprocessed_data() by_name, parameters, arg_count = pta_trace_to_aggregate(preprocessed_data, ignored_trace_indexes) - model = AnalyticModel(by_name, parameters) + model = AnalyticModel(by_name, parameters, arg_count) if xv_method: xv = CrossValidator(AnalyticModel, by_name, parameters, arg_count) @@ -239,6 +239,10 @@ if __name__ == '__main__': print('{:10s} {:10s} {:10s} stddev {:f}'.format( transition, attribute, param, model.stats.stats[transition][attribute]['std_by_param'][param] )) + for i, arg_stddev in enumerate(model.stats.stats[transition][attribute]['std_by_arg']): + print('{:10s} {:10s} arg{:d} stddev {:f}'.format( + transition, attribute, i, arg_stddev + )) if info != None: for param_name in sorted(info['fit_result'].keys(), key=str): param_fit = info['fit_result'][param_name]['results'] |