To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 0eaebfe7 authored by Zixian Cai's avatar Zixian Cai
Browse files

Fix display of mean

parent 6f27a7ef
......@@ -48,9 +48,9 @@ class LogOutputPipeline(Pipeline):
def compare(r1, r2):
decreased, changed, increased = r1.compare(r2)
if r1.mean < r2.mean:
ratio = "{0:.2f} times faster".format(r2.mean / r1.mean)
ratio = "{:.2f} times faster".format(r2.mean / r1.mean)
else:
ratio = "{0:.2f} times slower".format(r1.mean / r2.mean)
ratio = "{:.2f} times slower".format(r1.mean / r2.mean)
if decreased:
trend = "It's statistically significantly " + \
crayons.red("lower") + " using one-sided t-test"
......@@ -79,7 +79,7 @@ class BarplotPipeline(Pipeline):
height = rect.get_height()
ax.text(rect.get_x() + rect.get_width() / 2.,
1.05 * height,
'%d' % int(height),
"{:.3f}".format(height),
ha='center', va='bottom')
import numpy as np
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment