diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-05-26 10:53:47 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2020-05-26 10:53:47 +0100 |
| commit | b349ffe2a8af1262dde4dbac7bbe4f51a669fac4 (patch) | |
| tree | 045bf3a2b7bf6ac76d02afa5715e9ea094adc71d /analysis/scripts/make_table.py | |
| parent | Don't update pip in Dockerfile (diff) | |
| parent | Update changelog (diff) | |
| download | TCPDBench-b349ffe2a8af1262dde4dbac7bbe4f51a669fac4.tar.gz TCPDBench-b349ffe2a8af1262dde4dbac7bbe4f51a669fac4.zip | |
Merge branch 'update'
Diffstat (limited to 'analysis/scripts/make_table.py')
| -rw-r--r-- | analysis/scripts/make_table.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/analysis/scripts/make_table.py b/analysis/scripts/make_table.py index c326775e..8070eecd 100644 --- a/analysis/scripts/make_table.py +++ b/analysis/scripts/make_table.py @@ -103,6 +103,7 @@ class Method(Enum): rfpop = "rfpop" segneigh = "segneigh" wbs = "wbs" + zero = "zero" # Methods that support multidimensional datasets @@ -112,6 +113,7 @@ MULTIMETHODS = [ Method.ecp, Method.kcpa, Method.rbocpdms, + Method.zero, ] # Multidimensional datasets @@ -126,7 +128,13 @@ MULTIDATASETS = [ MISSING_DATASETS = [Dataset.uk_coal_employ] # Methods that handle missing values -MISSING_METHODS = [Method.bocpdms, Method.ecp, Method.kcpa, Method.prophet] +MISSING_METHODS = [ + Method.bocpdms, + Method.ecp, + Method.kcpa, + Method.prophet, + Method.zero, +] @dataclass @@ -323,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 |
