Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3045a68
feat(bench): a marginal miss of a calibrated check is a warning
claude Nov 29, 2026
dba39b3
fix(bench): pin benchmark numerics to AVX2 so runners agree
claude Nov 29, 2026
4af6148
feat(engine): draw links to small copied code lists with the row's at…
claude Nov 29, 2026
53f7a54
chore(bench): baseline from bench run 46259927245
github-actions[bot] Nov 29, 2026
f371e9c
feat(engine): keep a fixed number of links per row in pair facts
claude Nov 29, 2026
3176b95
fix(evaluate): join association z on the rows where both values are p…
claude Nov 29, 2026
62a2857
fix(bench): MIMIC and Synthea event times as offsets from their stay
claude Nov 29, 2026
625a4bd
feat(engine): keep fact rows whose parent row is missing (fact.orphans)
claude Nov 29, 2026
2b9fd62
chore(bench): baseline from bench run 46302368228
github-actions[bot] Nov 29, 2026
211e3cd
refactor(bench): numerics pin as a function, reported at the start of…
claude Nov 29, 2026
42e5361
fix: pre-merge code review findings (code links, orphans, rounding, j…
claude Nov 29, 2026
a34c2f5
fix(engine,bench): code links keep participation; CPU in the bench log
claude Nov 30, 2026
119ba75
fix(bench): drop the OpenBLAS kernel pin (native crashes on EPYC 9V74)
claude Nov 30, 2026
66c318a
feat(engine): categorical pairs that mostly hold the same value (marg…
claude Nov 30, 2026
701945d
fix(engine,bench): dates offset from a year column; MIMIC dates follo…
claude Nov 30, 2026
234fd87
fix: code review of the pair and year-offset changes
claude Nov 30, 2026
c3fe484
fix(bench): referential-integrity goal follows kept orphan rows
claude Nov 30, 2026
2f23258
chore(bench): baseline from bench run 46335547448
github-actions[bot] Nov 30, 2026
ae5f839
fix: CodeRabbit review of the baseline rebuild
claude Nov 30, 2026
f027f01
test(bench): numerics pin test holds on NumPy before 2.4
claude Nov 30, 2026
428d16d
fix(engine,export,bench): address the second CodeRabbit review round
claude Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,15 @@ jobs:
run: |
# one folder per job (records of parallel jobs can share a name): prefix the job's part;
# a lone artifact (a dispatch with `only` of one set) is extracted straight into bench-out/
# the baseline is built from the history copies, so its sources are the committed file names
shopt -s nullglob
copied=()
for f in bench-out/*/*.json; do
part=$(basename "$(dirname "$f")"); cp "$f" "bench/history/${part#bench-history-}-$(basename "$f")"
part=$(basename "$(dirname "$f")"); dst="bench/history/${part#bench-history-}-$(basename "$f")"
cp "$f" "$dst"; copied+=("$dst")
done
for f in bench-out/*.json; do cp "$f" bench/history/; done
python -m bench baseline bench-out/*.json bench-out/*/*.json
for f in bench-out/*.json; do cp "$f" bench/history/; copied+=("bench/history/$(basename "$f")"); done
python -m bench baseline "${copied[@]}"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add bench/baseline.json bench/history/
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions bench/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import sys
from pathlib import Path

from . import numerics # first: pins the numerics before NumPy loads
from . import regress
from .datasets import DATASETS, FEATURES, REQUIRED_FEATURES, TIERS, available, is_private, private_store, say, \
tier_datasets
Expand Down Expand Up @@ -230,6 +231,10 @@ def main(argv: list[str] | None = None) -> int:
sub.add_parser("coverage").add_argument("--check", action="store_true",
help="exit 1 when a required feature has fewer than two datasets")
a = ap.parse_args(argv)
if a.cmd in ("run", "all"):
from .runner import machine
m_ = machine()
say(f"numerics: {numerics.pin() or 'native (no pin)'}; cpu {m_['cpu']} x{m_['cpus']}, numpy {m_['numpy']}")

if a.cmd == "list":
for n, d in DATASETS.items():
Expand Down
11 changes: 8 additions & 3 deletions bench/assess.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,14 @@ def quality_checks(rep: dict) -> list[dict]:
for c in rep["checks"]:
by_metric.setdefault(c["metric"], []).append(c)
# roadmap acceptance metrics (docs/acceptance-metrics.md)
fk = [c["value"] for c in by_metric.get("fk_integrity", []) if c["value"] is not None]
if fk:
out.append({"id": "goal:referential_integrity", "pass": min(fk) >= 1.0, "value": min(fk), "real": 1.0})
fkc = [c for c in by_metric.get("fk_integrity", []) if c["value"] is not None]
if fkc:
# every key names a parent row, except where the spec keeps the source's orphan rows
# (fact.orphans: keep): there each key's own check holds it to the source's share
lim = [1.0 if c.get("limit") is None else min(float(c["limit"]), 1.0) for c in fkc]
ok = all(c["value"] >= li for c, li in zip(fkc, lim))
out.append({"id": "goal:referential_integrity", "pass": ok, "value": min(c["value"] for c in fkc),
"real": 1.0, **({"limit": min(lim)} if min(lim) < 1.0 else {})})
hard = [c for c in by_metric.get("rule_violation_rate", []) if c["value"] is not None]
if hard:
# each rule's synthetic violation rate within max(0, the real data's own rate)
Expand Down
Loading
Loading