eval.score_calculator¶
chunktuner.eval.score_calculator
¶
Weighted scalar score from EvalMetrics for a use case.
ScoreCalculator
¶
Weighted sum of EvalMetrics fields for a use-case profile.
retrieval_scope selects which ranking feeds the rank-based keys: with "corpus",
mrr reads corpus_mrr and recall_at_1 reads corpus_recall_at_k[1]
(missing corpus values count as 0.0). No weight profile references nDCG.
token_recall / token_iou / token_precision / duplication_ratio and the
length metrics are always document-based: they measure what fits in the context budget
for the query's own document, not ranking against distractors.
Source code in src/chunktuner/eval/score_calculator.py
score
¶
Return a scalar score from weighted metric contributions (missing keys skipped).