diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-18 10:05:35 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-03-18 10:05:35 +0100 |
commit | f4571b73b86c28c3e058277061846b52bd004da2 (patch) | |
tree | 1e00b041b28f5ac54d461f99ecbb11730a27aa7a | |
parent | 53546c9c52b4b45525726babbeb01f7532922783 (diff) |
analyze-archive: support multiple choices for show-model / show-quality
-rwxr-xr-x | bin/analyze-archive.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 0da824d..18f1ad5 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -462,6 +462,8 @@ if __name__ == "__main__": parser.add_argument( "--show-models", choices=["static", "paramdetection", "param", "all", "tex", "html"], + action="append", + default=list(), help="static: show static model values as well as parameter detection heuristic.\n" "paramdetection: show stddev of static/lut/fitted model\n" "param: show parameterized model functions and regression variable values\n" @@ -472,6 +474,8 @@ if __name__ == "__main__": parser.add_argument( "--show-quality", choices=["table", "summary", "all", "tex", "html"], + action="append", + default=list(), help="table: show static/fitted/lut SMAPE and MAE for each name and attribute.\n" "summary: show static/fitted/lut SMAPE and MAE for each attribute, averaged over all states/transitions.\n" "all: all of the above.\n" @@ -572,11 +576,8 @@ if __name__ == "__main__": state_or_tran, attribute, *function_str = function_desc.split(" ") function_override[(state_or_tran, attribute)] = " ".join(function_str) - if args.show_models: - show_models = args.show_models.split(",") - - if args.show_quality: - show_quality = args.show_quality.split(",") + show_models = args.show_models + show_quality = args.show_quality if args.cross_validate: xv_method, xv_count = args.cross_validate.split(":") |