Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing pytrec_eval measures #1

Open
8 tasks done
cmacdonald opened this issue Apr 18, 2021 · 4 comments
Open
8 tasks done

missing pytrec_eval measures #1

cmacdonald opened this issue Apr 18, 2021 · 4 comments

Comments

@cmacdonald
Copy link
Collaborator

cmacdonald commented Apr 18, 2021

This list is not exhaustive, but just the other measures more likely to be used.

  • iprec_at_recall
  • num_ret
  • num_rel_ret
  • num_q
  • num_rel
  • success
  • set_P
  • infAP
@cmacdonald
Copy link
Collaborator Author

cmacdonald commented Apr 18, 2021

The following nicknames might be handy:

  • 'official'
  • 'set'
  • 'all_trec'
  • 'iprec_at_recall'

@seanmacavaney
Copy link
Collaborator

For a pytrec_eval (nick)name -> irm mapping function, would something like this meet your needs?

ir_measures.convert_trec_name(name: str) -> List[BaseMeasure]

# Examples
ir_measures.convert_trec_name('map') -> [AP]
ir_measures.convert_trec_name('P_5') -> [P@5]
ir_measures.convert_trec_name('P_5,10') -> [P@5, P@10]
ir_measures.convert_trec_name('P.5') -> [P@5]
ir_measures.convert_trec_name('P.5,10') -> [P@5, P@10]
ir_measures.convert_trec_name('P') -> [P@5, P@10, P@15, P@20, P@30, P@100, P@200, P@500, P@1000] # expando
ir_measures.convert_trec_name('ndcg') -> [nDCG]
ir_measures.convert_trec_name('ndcg_cut') -> [nDCG@5, nDCG@10, ...] # expando
ir_measures.convert_trec_name('official') -> [NumRet, ...] # all those from the family

@cmacdonald
Copy link
Collaborator Author

cmacdonald commented Apr 18, 2021

Also:

ir_measures.convert_trec_name('ndcg_cut_5') -> [nDCG@5]

Your implementation might come from:
https://github.com/terrier-org/pyterrier/blob/ir_measures/pyterrier/pipelines.py#L64

@seanmacavaney
Copy link
Collaborator

seanmacavaney commented Apr 23, 2021

Remaining measures (identified via supported_measures in pytrec_eval):

  • Rndcg
  • num_nonrel_judged_ret
  • 11pt_avg
  • relative_P
  • gm_map
  • binG
  • ndcg_rel
  • Rprec_mult
  • gm_bpref
  • G
  • utility
  • set_recall
  • set_F
  • set_relative_P
  • set_map
  • runid
  • relstring

seanmacavaney added a commit that referenced this issue May 30, 2021
seanmacavaney added a commit that referenced this issue May 30, 2021
seanmacavaney added a commit that referenced this issue May 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants