Commit 0880b7cd authored by Ben Gamari's avatar Ben Gamari 🐢

perf-compare: Fix bounds handling

parent a4523a02
......@@ -86,7 +86,7 @@ def main() -> None:
max_bound = xs['value'].quantile(1-q)
print(f'\n### `{metric}`')
print(xs[(xs['value'] > min_bound) & (xs['value'] < max_bound)].groupby('file').aggregate(['mean', 'std', 'count'])['value'].to_markdown())
print(xs[(xs['value'] >= min_bound) & (xs['value'] <= max_bound)].groupby('file').aggregate(['mean', 'std', 'count'])['value'].to_markdown())
bounds = (min_bound, max_bound)
for name, values in xs.groupby('file'):
pl.hist(values['value'], label=name, bins=args.bins, range=bounds, alpha=0.6)
......
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