Unverified Commit 5c52474f authored by Vít Novotný's avatar Vít Novotný
Browse files

First clip, then remove non-judged documents

parent a7ef139a
......@@ -122,8 +122,8 @@ def get_ndcg(parsed_run, task, subset, topn=1000, confidence=None):
"""
evaluator = EVALUATORS[subset][task]
parsed_run = _remove_nonjudged_topics_and_documents(parsed_run, task, subset)
parsed_run = _clip_topn(parsed_run, topn)
parsed_run = _remove_nonjudged_topics_and_documents(parsed_run, task, subset)
if not parsed_run:
return 0.0
evaluation = evaluator.evaluate(parsed_run)
......
Supports Markdown
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