From 460e115d43dce9d8c5b0aceeb657ad1720e62265 Mon Sep 17 00:00:00 2001 From: Fernando Meyer Date: Thu, 4 Feb 2021 15:34:22 +0100 Subject: [PATCH] add L1 norm to absolute spider plot --- src/plots.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plots.py b/src/plots.py index 3722c7b..d58f726 100644 --- a/src/plots.py +++ b/src/plots.py @@ -558,6 +558,7 @@ def spider_plot_preprocess_metrics(pd_mean, labels): tool_to_rank_to_metric_to_value[tool][rank][c.RECALL+'absolute'] = g[c.RECALL].values[0] if len(g[c.RECALL].values) > 0 else None tool_to_rank_to_metric_to_value[tool][rank][c.PRECISION+'absolute'] = g[c.PRECISION].values[0] if len(g[c.PRECISION].values) > 0 else None tool_to_rank_to_metric_to_value[tool][rank][c.BRAY_CURTIS+'absolute'] = g[c.BRAY_CURTIS].values[0] if len(g[c.BRAY_CURTIS].values) > 0 else None + tool_to_rank_to_metric_to_value[tool][rank][c.L1NORM+'absolute'] = g[c.L1NORM].values[0] / 2 if len(g[c.L1NORM].values) > 0 else None # relative values if rank_to_max_recall[rank] > 0: