diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-12-01 13:50:25 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-12-01 13:50:25 +0100 |
commit | d88766b15c82f35b977e3313090fe4c061db2173 (patch) | |
tree | 91980ee38c8a8bde47dbae20ce92cfbe1bbd134b /bin/analyze-log.py | |
parent | 8221f091eaae2900987eace290f117475561a74d (diff) |
analyze-log: add --boxplot-unparam support
Diffstat (limited to 'bin/analyze-log.py')
-rwxr-xr-x | bin/analyze-log.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/analyze-log.py b/bin/analyze-log.py index 3538a98..f833b22 100755 --- a/bin/analyze-log.py +++ b/bin/analyze-log.py @@ -179,6 +179,22 @@ def main(): # output=fname, ) + if args.boxplot_unparam: + for name in model.names: + attr_names = sorted(model.attributes(name)) + dfatool.plotter.boxplot( + attr_names, + [model.by_name[name][attr] for attr in attr_names], + xlabel="Attribute", + output=f"{args.boxplot_unparam}{name}.pdf", + ) + for attribute in attr_names: + dfatool.plotter.boxplot( + [attribute], + [model.by_name[name][attribute]], + output=f"{args.boxplot_unparam}{name}-{attribute}.pdf", + ) + if args.cross_validate: xv_method, xv_count = args.cross_validate.split(":") xv_count = int(xv_count) |