From 1c3239d6bc4378f3ee90d975973d4946756b3777 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 25 May 2020 17:35:13 +0100 Subject: Add rank plots on multivariate data --- analysis/scripts/rank_common.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'analysis/scripts') diff --git a/analysis/scripts/rank_common.py b/analysis/scripts/rank_common.py index b1d5af77..d12dc5bc 100644 --- a/analysis/scripts/rank_common.py +++ b/analysis/scripts/rank_common.py @@ -89,12 +89,27 @@ def warning(msg): def preprocess_data(data, _type): methods = set([m for dset in data.keys() for m in data[dset].keys()]) methods = sorted(methods) + + # filter out rbocpdms on "best" (uni or multi) if _type == "best": warning( "\nWarning: Filtering out RBOCPDMS due to insufficient results.\n" ) methods = [m for m in methods if not m == "rbocpdms"] + # filter out methods that have no results on any dataset + methods_no_result = set() + for m in methods: + if all(data[d][m] is None for d in data): + methods_no_result.add(m) + if methods_no_result: + print( + "\nWarning: Filtering out %r due to no results on any series\n" + % methods_no_result, + file=sys.stderr, + ) + methods = [m for m in methods if not m in methods_no_result] + data_w_methods = {} for dset in data: data_w_methods[dset] = {} -- cgit v1.2.3