[EPIC] pipekit-evaluate: benchmark contracts and oracle strength

Open
#152 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start with issue #168 and the first real recipe that will shape the contract, then read benchmark/run.py for _check_unique_cells and cube.py for LEVEL_NAMES. The execution notes identify adding estimator names and correcting the L2 label as the first small steps; the epic's broader work includes contract serialization, report identity, oracle strength, submissions, presets, and a differentiable scorer. Done means the listed sub-issues are filed and resolved or removed with reasons, and the stated YAML round-trip and submission verification conditions pass.

Written by the indexing model from the issue text.

Description

area:code priority:p2 type:epic-theme

Theme

pipekit-evaluate's benchmarks become contracts: a versioned, hashed statement of a task, its splits, references and scorers, whose reports say what they scored and how far each reference can be trusted.

Parent Wave

None. This comes from geostack reports 14, 15 and 17.

Motivation

Benchmark, MetricScorer, EvaluationReport and CovarianceEstimate ship at 7c446f1, but a report doesn't name what it scored.
Two estimators can't share a cell, because results are keyed by (rung, complexity), so Benchmark rejects a second baseline in the same cell.
A cell can't tell retrieval, gap-filling and forecasting apart, and no row says how strong its oracle was.
Without a contract, two benchmark runs can't be compared with confidence.

This epic sets the scope only.
Its children aren't filed yet, because they should follow a first real recipe, #168; each row below becomes one issue when the work starts, and the claims in "At 7c446f1" were checked against the source.

Issues

Proposed issue Symbols and destination At 7c446f1
feat(evaluate): BenchmarkContract benchmark/contract.py: BenchmarkContract(name, version, task, operation, input, output, variant, splits, references, data, scorers, baselines, submission, status), content_hash, to_yaml, from_yaml Absent
feat(evaluate): reports name what they scored contract_hash on reports, model_hash on each result, Benchmark.from_contract Absent
feat(evaluate): name estimators, so that a cell can hold several name on Estimator, with results keyed by it _check_unique_cells in run.py raises ValueError on a duplicate (rung, complexity)
feat(evaluate): variants and tracks variant on Scorer and Estimate, several named references, per-track scoring rules The word doesn't appear in the package
feat(evaluate): transition cells Cell(level, rung, complexity, source=None), labelled "L1→L2/r4/c0" Cell has level, rung, complexity
fix(evaluate): name L2 retrieved_obs LEVEL_NAMES["L2"] in cube.py "gap_filled_obs", which disagrees with the ladder's own description
feat(evaluate): oracle strength OracleStrength (physics_derived, classical_method, human_labels, heuristic) beside ReferenceSource, carried on each CellResult Absent
feat(evaluate): submissions ArtifactStore.put and get in pipekit-experiment, and BenchmarkSubmission(contract_hash, model_hash, report_hash) with verify(store) Absent
feat(evaluate): presets for the pilots presets.plume(), presets.ocean(), presets.land_extremes(), presets.fusion() Absent
feat(evaluate): a differentiable scorer as a Loss An adapter over pipekit_train.loss, which refuses non-differentiable scorers Absent

Out of this epic, because the destination is another repo: the missing metrics and wrappers of report 14 (xrtoolz), the baselines of report 15 (xrtoolz) and its split functions (geocatalog).

Execution Notes

Start with name on Estimator and LEVEL_NAMES, which are small and unblock the rest.
BenchmarkContract comes next, as the shape everything else records.
The L2 rename changes a public string, so note it in the changelog.

Parallelism

  • Can run in parallel with: #151.
  • Blocked by (inside this wave): #168, so that the contract is shaped by one real recipe.
  • Must complete before: none.

Definition of Done

  • Every row above is filed as a sub-issue and closed, or removed with a reason.
  • A contract's YAML round trip preserves its hash.
  • A report names its contract, and each result row names its model.
  • BenchmarkSubmission.verify rejects a report whose contract_hash doesn't match.

Relationships

  • Parent: none.
  • Related: geostack docs/reports/14_pipekit_evaluate.md, 15_benchmarking.md and 17_cycle.md, #149, #151
Dominant language
Python
Stars
0
Forks
0
Avg merge
3h 50m
Merged PRs (30d)
143

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jejjohnson/pipekit

All issues in jejjohnson/pipekit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.