Skip to content

Commit

Permalink
fix shannon plots to show averages over samples
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandomeyer committed Feb 17, 2020
1 parent a97e8ab commit 36613fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def plot_all(pd_metrics, labels, output_dir, metrics_plot):
for (rank, tool), g in pd_grouped.groupby(['rank', 'tool']):
if tool == c.GS or rank == 'rank independent':
continue
tool_to_rank_to_shannon[tool][rank] = g[c.SHANNON_EQUIT].values[0] if len(g[c.SHANNON_EQUIT].values) > 0 else None
tool_to_rank_to_shannon[tool][rank] = g[c.SHANNON_EQUIT].mean() if len(g[c.SHANNON_EQUIT].values) > 0 else None

# compute differences between each tool and gold standard
tool_to_rank_to_shannon_difference = defaultdict(dict)
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.7'
__version__ = '1.0.8'

0 comments on commit 36613fe

Please sign in to comment.