diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-10 08:25:18 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-01-10 08:25:18 +0100 |
commit | 72fc17a4dcff42bedb21b456f7da63065a72fd9f (patch) | |
tree | 6241ba2b95ac5686e92b9738e8ef8f0cfc897391 /lib | |
parent | d613ebe16e6d127dc72cd49f041400afce68e8a6 (diff) |
--show-model=param: RMT: Single-line output, no separate regression args
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cli.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -81,9 +81,13 @@ def print_info_by_name(model, by_name): def print_analyticinfo(prefix, info): - empty = "" - print(f"{prefix}: {info.model_function}") - print(f"{empty:{len(prefix)}s} {info.model_args}") + model_function = info.model_function.removeprefix("0 + ") + for i in range(len(info.model_args)): + model_function = model_function.replace( + f"regression_arg({i})", str(info.model_args[i]) + ) + model_function = model_function.replace("+ -", "- ") + print(f"{prefix}: {model_function}") def print_staticinfo(prefix, info): |