Skip to content

Commit

Permalink
Add gmean std to console reporter output
Browse files Browse the repository at this point in the history
  • Loading branch information
parttimenerd committed Jul 28, 2019
1 parent 6449a35 commit 47b40aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions temci/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,12 @@ def _report_block_with_baseline(self, block: RunData, print_func: t.Callable[[st
dev=dev,
conf=tester.test(block[prop], baseline[prop]),
dbase="{:>5.5%}".format(base_std / base_mean) if base_mean != 0 else "{:>5.5}".format(base_std)))
gmean = stats.gmean([(block.get_single_properties()[prop].mean() / baseline.get_single_properties()[prop].mean())
for prop in combined_props])
print_func("geometric mean of relative mean = {:>15}".format(str(FNumber(gmean, is_percent=True))))
rels = [(block.get_single_properties()[prop].mean() / baseline.get_single_properties()[prop].mean())
for prop in combined_props]
gmean = stats.gmean(rels)
gstd = util.geom_std(rels)
print_func("geometric mean of relative mean = {:>15}, std dev = {:>15}"
.format(FNumber(gmean, is_percent=True).format(), FNumber(gstd, is_percent=True).format()))

def _report_list(self, title: str, items: t.List[dict], print_func: t.Callable[[str], None], descr_size: int):
if len(items) != 0:
Expand Down

0 comments on commit 47b40aa

Please sign in to comment.