LEVEL 2 · BUILDER

Retrieval Evaluation Lab

Measure ranking quality with precision, recall, reciprocal rank, and discounted gain while exposing duplicates and missing judgments.

4 stages~8 hoursPythoncore
Validate rankings and graded judgmentsCompute precision and recall at kReward useful evidence near the topCompare systems query by query
YOU END UP WITH

A retrieval regression detective revealing which evidence moved and why the aggregate changed.

USEFUL FOR
  • A retrieval regression detective revealing which evidence moved and why the aggregate changed.
  • Metrics apply to supplied labels.
WHY THESE LANGUAGES
  • Python The standard library makes parsing, scoring, and failure handling visible without hiding the mechanism behind a framework.
PROJECT OUTLINE

Retrieval Evaluation Lab in 4 stages

Measure ranking quality with precision, recall, reciprocal rank, and discounted gain while exposing duplicates and missing judgments.

  1. Validate rankings and graded judgments

    Reject duplicate ranking ids, nonpositive cutoffs, and invalid relevance grades.

    starter · ~2 hours · Python

    evaluation contractsgraded relevance
  2. Compute precision and recall at k

    Compute binary precision and recall for positive-grade judgments at cutoff k.

    core · ~2 hours · Python

    precisionrecallcutoff
  3. Reward useful evidence near the top

    Return reciprocal rank and NDCG at k.

    core · ~2 hours · Python

    MRRNDCGdiscounted gain
  4. Compare systems query by query

    Produce per-query metrics and macro means for each named system, with unjudged result counts.

    stretch · ~2 hours · Python

    macro averagingpaired systems

Lessons this project uses

All projects · Course catalog · Source on GitHub