summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-01-11 14:07:56 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-01-11 14:07:56 +0100
commit59e35e5112db018a3ba150c4a661292a154398e3 (patch)
tree2c16cf071af42c270b99b1c0b76aa33365445e3a /bin
parent9826f7cbad31ef0e04bf14e8b1ed2e95a81b4054 (diff)
move --show-quality=table header to cli.py
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py1
-rwxr-xr-xbin/analyze-kconfig.py7
-rwxr-xr-xbin/analyze-log.py7
3 files changed, 3 insertions, 12 deletions
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,
)