Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenRaiser/PaperFlow
/ oracle_gain
Function
oracle_gain
experiments/benchmark/evaluate_simulation_metrics.py:50–51 ·
view source on GitHub ↗
(row: Dict[str, Any])
Source
from the content-addressed store, hash-verified
48
49
50
def
oracle_gain(row: Dict[str, Any]) -> float:
51
return
GAIN_BY_LABEL.get(str(row.get(
"oracle_label"
) or
"irrelevant"
), 0.0)
52
53
54
def
is_oracle_useful(row: Dict[str, Any]) -> bool:
Callers
nothing calls this directly
Calls
1
get
Method · 0.80
Tested by
no test coverage detected