From 59e35e5112db018a3ba150c4a661292a154398e3 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 11 Jan 2024 14:07:56 +0100 Subject: move --show-quality=table header to cli.py --- bin/analyze-archive.py | 1 + bin/analyze-kconfig.py | 7 +------ bin/analyze-log.py | 7 +------ 3 files changed, 3 insertions(+), 12 deletions(-) (limited to 'bin') diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 25565a5..2f5e680 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -730,6 +730,7 @@ if __name__ == "__main__": static=static_quality, model_info=param_info, xv_method=xv_method, + xv_count=xv_count, error_metric=args.error_metric, ) if args.with_substates: diff --git a/bin/analyze-kconfig.py b/bin/analyze-kconfig.py index b114999..bc47242 100755 --- a/bin/analyze-kconfig.py +++ b/bin/analyze-kconfig.py @@ -526,18 +526,13 @@ def main(): ) if "table" in args.show_quality or "all" in args.show_quality: - if xv_method is not None: - print( - f"Model error ({args.error_metric}) after cross validation ({xv_method}, {xv_count}):" - ) - else: - print(f"Model error ({args.error_metric}) on training data:") dfatool.cli.model_quality_table( lut=lut_quality, model=analytic_quality, static=static_quality, model_info=param_info, xv_method=xv_method, + xv_count=xv_count, error_metric=args.error_metric, ) diff --git a/bin/analyze-log.py b/bin/analyze-log.py index c74e206..be11f5d 100755 --- a/bin/analyze-log.py +++ b/bin/analyze-log.py @@ -223,18 +223,13 @@ def main(): ) if "table" in args.show_quality or "all" in args.show_quality: - if xv_method is not None: - print( - f"Model error ({args.error_metric}) after cross validation ({xv_method}, {xv_count}):" - ) - else: - print(f"Model error ({args.error_metric}) on training data:") dfatool.cli.model_quality_table( lut=lut_quality, model=analytic_quality, static=static_quality, model_info=param_info, xv_method=xv_method, + xv_count=xv_count, error_metric=args.error_metric, ) -- cgit v1.2.3