MCPcopy Create free account
hub / github.com/19PINE-AI/ikp / acc

Function acc

scripts/lambda_floor_ablation.py:36–43  ·  view source on GitHub ↗
(ts, lam, floor)

Source from the content-addressed store, hash-verified

34by = {m["model"]: m for m in SUMMARY}
35
36def acc(ts, lam, floor):
37 xs = []
38 for t in TIERS:
39 s = ts.get(t)
40 if not s or not s.get("total"): xs.append(0.0); continue
41 v = (s["correct"] + lam*s["wrong"]) / s["total"]
42 xs.append(max(v, 0.0) if floor else v)
43 return float(np.mean(xs))
44
45opens = [m for m in SUMMARY if CFG.get(m["model"],{}).get("type")=="open"
46 and CFG.get(m["model"],{}).get("params_B") and CFG[m["model"]]["params_B"]>0

Callers 1

cellFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected