Skip to content

Commit

Permalink
add for both prfs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacdonald committed Dec 6, 2024
1 parent 6f9ae27 commit 8459f05
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyterrier_dr/prf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def __init__(self,
):
self.k = k

def compile(self) -> pt.Transformer:
return pt.RankCutoff(self.k) >> self

@pta.transform.by_query(add_ranks=False)
def transform(self, inp: pd.DataFrame) -> pd.DataFrame:
"""Performs Average PRF on the input dataframe."""
Expand Down

0 comments on commit 8459f05

Please sign in to comment.