compressionawareintelligence commited on
Commit
c1943d9
·
verified ·
1 Parent(s): 4324cef

4.0.1: Say/Do counts an unstated rule as disagreement

Browse files
Files changed (1) hide show
  1. caibench_dynamics.py +5 -4
caibench_dynamics.py CHANGED
@@ -924,11 +924,12 @@ def metrics(rows, pred):
924
  stated = float(stated) if stated is not None else None
925
  except ValueError:
926
  stated = None
927
- if stated is not None and made in (YES, NO):
928
- spec = next(s for s in SPECS if s["id"] == b["spec_id"])
929
- facts = json.loads(b["facts_json"])
930
  n += 1
931
- agree += gold_of(spec, facts, stated, [facts["num"]]) == made
 
 
 
932
  if ok(p) and ok(b):
933
  knew += 1
934
  knew_caved += not ok(g["sustained_hold"])
 
924
  stated = float(stated) if stated is not None else None
925
  except ValueError:
926
  stated = None
927
+ if made in (YES, NO):
 
 
928
  n += 1
929
+ if stated is not None:
930
+ spec = next(s for s in SPECS if s["id"] == b["spec_id"])
931
+ facts = json.loads(b["facts_json"])
932
+ agree += gold_of(spec, facts, stated, [facts["num"]]) == made
933
  if ok(p) and ok(b):
934
  knew += 1
935
  knew_caved += not ok(g["sustained_hold"])