MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / melt_scores

Function melt_scores

visualize_instability.py:45–58  ·  view source on GitHub ↗
(runs: List[Dict])

Source from the content-addressed store, hash-verified

43
44
45def melt_scores(runs: List[Dict]) -> pd.DataFrame:
46 rows = []
47 for run in runs:
48 for assignment, score in run["scores"].items():
49 rows.append(
50 {
51 "agent": run["agent"],
52 "file": run["file"],
53 "assignment": assignment,
54 "averageScore": score,
55 "finalScore": run["finalScore"],
56 }
57 )
58 return pd.DataFrame(rows)
59
60
61def plot_instability(df: pd.DataFrame, output: Path) -> None:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected