MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / build_label_map

Function build_label_map

experiments/baselines/scholar_inbox/runner.py:691–699  ·  view source on GitHub ↗
(label_rows: Sequence[Dict[str, Any]])

Source from the content-addressed store, hash-verified

689
690
691def build_label_map(label_rows: Sequence[Dict[str, Any]]) -> Dict[Tuple[str, str], Dict[str, Any]]:
692 labels: Dict[Tuple[str, str], Dict[str, Any]] = {}
693 for row in label_rows:
694 labels[label_key(row)] = {
695 "selected": bool(row.get("selected")),
696 "oracle_score": row.get("oracle_score", 0.0),
697 "oracle_label": row.get("oracle_label", "irrelevant"),
698 }
699 return labels
700
701
702def load_clean_benchmark_inputs(input_dir: Path) -> Tuple[List[Dict[str, Any]], List[Dict[str, Any]]]:

Callers 1

rerank_episodesFunction · 0.70

Calls 2

getMethod · 0.80
label_keyFunction · 0.70

Tested by

no test coverage detected