Skip to content

Commit

Permalink
Make peloton metric order results
Browse files Browse the repository at this point in the history
ejohb committed Jan 9, 2025
1 parent 47b7650 commit 9dd77e2
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions fmtr/tools/metric_tools.py
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ def get_peloton(data, factor: float) -> pd.Series:
"""
top1 = data.max()
data = data.sort_values(ascending=False)
threshold = top1 * (1 - factor)
peloton = data >= threshold
return peloton
2 changes: 1 addition & 1 deletion fmtr/tools/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.9
1.0.10

0 comments on commit 9dd77e2

Please sign in to comment.