bench: save per-decision probabilities and add them to the eval-results PR

#68
by tardellirs - opened

score_with_jobs.py already scores every decision but keeps only the summary. This PR:

  • writes predictions.jsonl next to results.json: one line per decision with case id, workflow, question id, type and the normalized probabilities over the gold options (the vector score_one scores, after the yes/no to true/false mapping);
  • has submit_results.py add that file to the model-repo PR as eval/typed-decisions/predictions.jsonl when it is present next to the results file (--predictions points elsewhere).

Scoring is unchanged. Replaying a published Jev run (OpenDecider's whole-case file, which their benchmarks README lists as Jev 1.13 through TypeSafe's API) through both versions with vLLM, HTTP and datasets mocked gives a byte-identical results.json (accuracy 0.7305), and re-scoring predictions.jsonl gives the same accuracy, KL, Brier and ECE.

The tie rule (first-listed option vs split credit) is left for a separate change; with the probabilities saved it can be re-applied to any run.

Context: https://huggingface.co/posts/tardellirs/145368791310880

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment