diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-05-25 17:54:25 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-05-25 17:54:25 +0100 |
| commit | 9159d0793a8b81a87c0fd0d40e2651e2e0bb34bf (patch) | |
| tree | 964c318ef7176b6858a7c8c2c15ebe9544836b41 /analysis/scripts | |
| parent | Add clean_results target to makefile (diff) | |
| download | TCPDBench-9159d0793a8b81a87c0fd0d40e2651e2e0bb34bf.tar.gz TCPDBench-9159d0793a8b81a87c0fd0d40e2651e2e0bb34bf.zip | |
Code formatting
Diffstat (limited to 'analysis/scripts')
| -rw-r--r-- | analysis/scripts/make_table.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/analysis/scripts/make_table.py b/analysis/scripts/make_table.py index d0950626..8070eecd 100644 --- a/analysis/scripts/make_table.py +++ b/analysis/scripts/make_table.py @@ -113,7 +113,7 @@ MULTIMETHODS = [ Method.ecp, Method.kcpa, Method.rbocpdms, - Method.zero + Method.zero, ] # Multidimensional datasets @@ -128,8 +128,13 @@ MULTIDATASETS = [ MISSING_DATASETS = [Dataset.uk_coal_employ] # Methods that handle missing values -MISSING_METHODS = [Method.bocpdms, Method.ecp, Method.kcpa, Method.prophet, - Method.zero] +MISSING_METHODS = [ + Method.bocpdms, + Method.ecp, + Method.kcpa, + Method.prophet, + Method.zero, +] @dataclass @@ -326,7 +331,10 @@ def average_results(results): if any(r.score is None for r in dset_results): to_remove.append(dataset) if to_remove: - warning("\nWarning: Filtering out datasets: %r due to incomplete results for some detectors.\n" % to_remove) + warning( + "\nWarning: Filtering out datasets: %r due to incomplete results for some detectors.\n" + % to_remove + ) results = list(filter(lambda r: not r.dataset in to_remove, results)) # check that we are now complete: for all datasets and all methods in the |
