ProCreations's picture
download
raw
441 Bytes
# -*- coding: utf-8 -*-
POS_TOPK_BY_PART = {
"PartI": 10,
"PartII": 1,
"PartIII": 5,
}
POS_TOPK = POS_TOPK_BY_PART["PartIII"]
def pos_topk_for_part(part: str | None) -> int:
return POS_TOPK_BY_PART.get(part or "", POS_TOPK)
def pos_topk_for_qid(qid: str, qid_to_part: dict | None) -> int:
part = (qid_to_part or {}).get(qid)
return pos_topk_for_part(part)
EVAL_TOPK = 10
TFIDF_MAX_FEATURES = 5000
EPS = 1e-8

Xet Storage Details

Size:
441 Bytes
·
Xet hash:
c29951c1f69ed2d13e2a95d3a81dc6d8b3bd2d5368dde01d32aa2ec9953a184c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.