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

Function is_error

scripts/rescore_clean_lambda0.py:23–25  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

21 "deepseek-v4-flash_strict_rejudge.json"}
22
23def is_error(r):
24 # empty response with no genuine refusal text -> treat as query error, exclude
25 return (not (r.get("model_response") or "").strip()) and r.get("verdict") == "REFUSAL"
26
27def score(records):
28 ts = {t: {"total":0,"correct":0,"wrong":0,"refusal":0} for t in TIERS}

Callers 1

scoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected