diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-06-29 16:50:44 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-06-29 16:50:44 +0200 |
commit | a62719b6be5667014bd259b055d7f2848469d04c (patch) | |
tree | ca584cc70d904d446524f753ac37c8c754deb9f4 /bin | |
parent | 9b83049f6c8e5b7780125865b65b191a61d69701 (diff) |
analyze-log: show param model
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/analyze-log.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/analyze-log.py b/bin/analyze-log.py index 2846d7c..8422912 100755 --- a/bin/analyze-log.py +++ b/bin/analyze-log.py @@ -9,6 +9,7 @@ import argparse import dfatool.cli import dfatool.plotter import dfatool.utils +import dfatool.functions as df from dfatool.model import AnalyticModel from dfatool.validation import CrossValidator from functools import reduce @@ -202,6 +203,17 @@ def main(): for attribute in model.attributes(name): dfatool.cli.print_static(model, static_model, name, attribute) + if "param" in args.show_model or "all" in args.show_model: + for name in model.names: + for attribute in model.attributes(name): + info = param_info(name, attribute) + if type(info) is df.AnalyticFunction: + dfatool.cli.print_analyticinfo(f"{name:10s} {attribute:15s}", info) + elif type(info) is df.SplitFunction: + dfatool.cli.print_splitinfo( + model.parameters, info, f"{name:10s} {attribute:15s}" + ) + if "table" in args.show_quality or "all" in args.show_quality: if xv_method is not None: print(f"Model error after cross validation ({xv_method}, {xv_count}):") |