Skip to content

Commit

Permalink
add comment regarding sorting to FFScore
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjleo committed Dec 15, 2024
1 parent d8aad79 commit ee8b74d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fast_forward/util/pyterrier.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def transform(self, inp: "pd.DataFrame") -> "pd.DataFrame":
Ranking(
inp.rename(columns={"qid": "q_id", "docno": "id"}),
copy=False,
# since this ranking is only used for scoring, sorting is not necessary
is_sorted=True,
)
)._df.rename(columns={"q_id": "qid", "id": "docno"})
Expand Down

0 comments on commit ee8b74d

Please sign in to comment.