LEVEL 2 · BUILDER

Local Model Evaluation Harness

A reproducible local-model recording and comparison artifact with visible coverage and confidence error. record.py writes the same {manifest,source,labels,records} contract consumed by cli.py. --baseline compares only identical label fingerprints; --min-accuracy supplies a local CI gate.

4 stages~8 hoursPythoncore
Validate prediction recordsMeasure normalized exact-answer accuracyMeasure confidence calibrationPublish accuracy and latency together
YOU END UP WITH

A reproducible local-model recording and comparison artifact with visible coverage and confidence error.

USEFUL FOR
  • record.py writes the same {manifest,source,labels,records} contract consumed by cli.py. --baseline compares only identical label fingerprints; --min-accuracy supplies a local CI gate.
LEARN FIRST
  • Python 3.10+
  • JSON, ratios, sorting, percentiles and basic HTTP. A live recorder additionally needs an already-running loopback OpenAI-compatible model server.
WHY THESE LANGUAGES
  • Python The standard library makes parsing, scoring, and failure handling visible without hiding the mechanism behind a framework.
PROJECT OUTLINE

Local Model Evaluation Harness in 4 stages

A reproducible local-model recording and comparison artifact with visible coverage and confidence error.

  1. Validate prediction records

    Validate unique ids, string answers, confidence in [0,1], and nonnegative latency_ms..

    starter · ~2 hours · Python

    recorded predictionsfinite values
  2. Measure normalized exact-answer accuracy

    Return correct, total, accuracy, and coverage against a complete label mapping..

    core · ~2 hours · Python

    accuracycoveragemissing data
  3. Measure confidence calibration

    Compute fixed-width bin ECE weighted by bin count, retaining per-bin evidence..

    core · ~2 hours · Python

    calibrationECEconfidence
  4. Publish accuracy and latency together

    Combine metrics with nearest-rank latency percentiles and a measurement-source label..

    stretch · ~2 hours · Python

    percentilesmeasurement provenance

All projects · Course catalog · Source on GitHub