MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _attach_delta

Function _attach_delta

scripts/holdout_param_sweep.py:126–134  ·  view source on GitHub ↗
(result: dict[str, Any], baseline: dict[str, Any])

Source from the content-addressed store, hash-verified

124
125
126def _attach_delta(result: dict[str, Any], baseline: dict[str, Any]) -> dict[str, Any]:
127 enriched = dict(result)
128 enriched["delta_vs_baseline"] = {
129 "tier_match_accuracy": result["tier_match_accuracy"] - baseline["tier_match_accuracy"],
130 "pass_rate": result["pass_rate"] - baseline["pass_rate"],
131 "exact_match": result["exact_match"] - baseline["exact_match"],
132 "pass_count": result["pass_count"] - baseline["pass_count"],
133 }
134 return enriched
135
136
137def _print_group(title: str, results: list[dict[str, Any]]) -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected