diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-05-25 17:35:13 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-05-25 17:35:13 +0100 |
| commit | 1c3239d6bc4378f3ee90d975973d4946756b3777 (patch) | |
| tree | 364aedba6151c722a64900451d4f266bdb95dc53 /analysis/scripts | |
| parent | Add descriptive statistics code and results (diff) | |
| download | TCPDBench-1c3239d6bc4378f3ee90d975973d4946756b3777.tar.gz TCPDBench-1c3239d6bc4378f3ee90d975973d4946756b3777.zip | |
Add rank plots on multivariate data
Diffstat (limited to 'analysis/scripts')
| -rw-r--r-- | analysis/scripts/rank_common.py | 15 |
1 files changed, 15 insertions, 0 deletions
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] = {} |
