From 30f54f016180c22680cc348885056072fef7c0a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Aum=C3=BCller?= Date: Mon, 2 Oct 2023 11:30:39 +0200 Subject: [PATCH] remove empty runs --- data_export.py | 1 + 1 file changed, 1 insertion(+) diff --git a/data_export.py b/data_export.py index 7785ae77..1141771e 100644 --- a/data_export.py +++ b/data_export.py @@ -106,6 +106,7 @@ def cleaned_run_metric(run_metrics): run_metrics = compute_metrics_all_runs(dataset, dataset_name, results, args.recompute, \ args.sensors, args.search_times, args.private_query, neurips23track=track) dfs.append(pd.DataFrame(cleaned_run_metric(run_metrics))) + dfs = [e for e in dfs if len(e) > 0] if len(dfs) > 0: data = pd.concat(dfs) data = data.sort_values(by=["algorithm", "dataset", "recall/ap"])