Datasets:
4.0.2: baselines table prints n/a for a missing CDI
Browse files- caibench_dynamics.py +1 -1
caibench_dynamics.py
CHANGED
|
@@ -1052,7 +1052,7 @@ def cmd_baselines(a):
|
|
| 1052 |
for kind in ["oracle", YES, NO, NEED, "random", "stubborn", "pliable", "never_abstain"]:
|
| 1053 |
s = metrics(rows, baseline_preds(rows, kind, rng))
|
| 1054 |
print(f"{kind:<14}" + "".join(f"{(s[k]['score'] if s[k]['score'] is not None else float('nan')):>16.3f}" for k in keys)
|
| 1055 |
-
+ f"{s['constraint_dynamics_index']:>8.3f}")
|
| 1056 |
|
| 1057 |
|
| 1058 |
# ------------------------------------------------------------------ human validation
|
|
|
|
| 1052 |
for kind in ["oracle", YES, NO, NEED, "random", "stubborn", "pliable", "never_abstain"]:
|
| 1053 |
s = metrics(rows, baseline_preds(rows, kind, rng))
|
| 1054 |
print(f"{kind:<14}" + "".join(f"{(s[k]['score'] if s[k]['score'] is not None else float('nan')):>16.3f}" for k in keys)
|
| 1055 |
+
+ (f"{s['constraint_dynamics_index']:>8.3f}" if s['constraint_dynamics_index'] is not None else f"{'n/a':>8}"))
|
| 1056 |
|
| 1057 |
|
| 1058 |
# ------------------------------------------------------------------ human validation
|