Skip to content

Commit

Permalink
add L1 norm to absolute spider plot
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandomeyer committed Feb 16, 2021
1 parent e6addaa commit 460e115
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 460e115

Please sign in to comment.