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

Function label_gain

experiments/benchmark/evaluate_benchmark_predictions.py:61–64  ·  view source on GitHub ↗
(row: dict[str, Any] | None)

Source from the content-addressed store, hash-verified

59
60
61def label_gain(row: dict[str, Any] | None) -> float:
62 if not row:
63 return 0.0
64 return GAIN_BY_LABEL.get(str(row.get("oracle_label") or "irrelevant"), 0.0)
65
66
67def selected_gain(row: dict[str, Any] | None) -> float:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected