diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-02-18 16:09:05 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-02-18 16:09:05 +0100 |
commit | 05ef7cf244c84be698cdf83c5e18104d4ed5dc70 (patch) | |
tree | ba5539af75fbc81bbd5fc5d1efdd46d586d78a6b /lib/cli.py | |
parent | afbb5e789a3a25ee875333785149559af5e89970 (diff) |
move --info to cli as well
Diffstat (limited to 'lib/cli.py')
-rw-r--r-- | lib/cli.py | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -29,6 +29,34 @@ def print_static(model, static_model, name, attribute): ) +def print_info_by_name(model, by_name): + for name in model.names: + attr = list(model.attributes(name))[0] + print(f"{name}:") + print(f""" Number of Measurements: {len(by_name[name][attr])}""") + for param in model.parameters: + print( + " Parameter {} ∈ {}".format( + param, + model.attr_by_name[name][attr].stats.distinct_values_by_param_name[ + param + ], + ) + ) + if name in model._num_args: + for i in range(model._num_args[name]): + print( + " Argument {} ∈ {}".format( + i, + model.attr_by_name[name][ + attr + ].stats.distinct_values_by_param_index[ + len(model.parameters) + i + ], + ) + ) + + def print_analyticinfo(prefix, info): empty = "" print(f"{prefix}: {info.model_function}") |