Datasets:
Use per-judge status and details JSON cells and simplify documentation
Browse files
calibforge_v1.1/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
`tasks.parquet` contains all **5,431 upstream CalibForge tasks**, with recalibrated resource requirements, automatic repairs and leak-repair changes where applied.
|
| 4 |
|
| 5 |
-
`results.parquet` has one row per task and one column per check. Check cells contain a `status` and `details` explaining findings or failures. Checks with automatic or LLM repair
|
| 6 |
|
| 7 |
Internet access was unspecified in upstream `task.toml`; we now set it to offline (`allow_internet = false`). Cached images are in [calibforge_v1.1/cached_images/](https://huggingface.co/datasets/FWeindel/validated-tasks/tree/main/calibforge_v1.1/cached_images), and shared offline runtimes are in [runtimes/](https://huggingface.co/datasets/FWeindel/validated-tasks/tree/main/runtimes). The runtimes cache interpreters, packages and dependency inputs used by `setup_files/setup.sh`, `tests/setup.sh` or `tests/test.sh`, reducing repeated setup work. 47 tasks failed Docker-to-Apptainer conversion and have no cached image.
|
| 8 |
|
|
|
|
| 2 |
|
| 3 |
`tasks.parquet` contains all **5,431 upstream CalibForge tasks**, with recalibrated resource requirements, automatic repairs and leak-repair changes where applied.
|
| 4 |
|
| 5 |
+
`results.parquet` has one row per task and one column per check. Check cells contain a `status` and `details` explaining findings or failures. Checks with automatic or LLM repair also have a `repaired` field (`true`/`false` when recorded). Each judge criterion has its own column containing JSON with `status` and `details` for each judge used. Repeated reviews are retained in `reviews`. Original resource requirements are in `original_resources` inside the JSON stored in `resources_recommended.details`, where recorded.
|
| 6 |
|
| 7 |
Internet access was unspecified in upstream `task.toml`; we now set it to offline (`allow_internet = false`). Cached images are in [calibforge_v1.1/cached_images/](https://huggingface.co/datasets/FWeindel/validated-tasks/tree/main/calibforge_v1.1/cached_images), and shared offline runtimes are in [runtimes/](https://huggingface.co/datasets/FWeindel/validated-tasks/tree/main/runtimes). The runtimes cache interpreters, packages and dependency inputs used by `setup_files/setup.sh`, `tests/setup.sh` or `tests/test.sh`, reducing repeated setup work. 47 tasks failed Docker-to-Apptainer conversion and have no cached image.
|
| 8 |
|
calibforge_v1.1/filter_tasks.py
CHANGED
|
@@ -48,6 +48,21 @@ def baseline_issues(row, checks=REQUIRED_CHECKS):
|
|
| 48 |
if status(row.get(key)) not in ACCEPTED}
|
| 49 |
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
def judge_failures(row, judge, criteria=JUDGE_CRITERIA):
|
| 52 |
"""Return failed criteria, or None when any required review is unresolved.
|
| 53 |
|
|
@@ -57,7 +72,7 @@ def judge_failures(row, judge, criteria=JUDGE_CRITERIA):
|
|
| 57 |
failed = set()
|
| 58 |
for criterion in criteria:
|
| 59 |
cell = row.get(criterion) or {}
|
| 60 |
-
reviews =
|
| 61 |
if not reviews or any(v not in ACCEPTED | {'fail'} for v in reviews):
|
| 62 |
return None
|
| 63 |
if 'fail' in reviews:
|
|
@@ -143,7 +158,7 @@ def export(tasks, results, out, judge=None, allow_fail=(), experiment2=False,
|
|
| 143 |
rows = table.to_pylist()
|
| 144 |
if judge:
|
| 145 |
available = {model for row in rows for criterion in criteria
|
| 146 |
-
for model in
|
| 147 |
if JUDGES.get(judge, judge) not in available:
|
| 148 |
raise ValueError('No verdicts for judge ' + judge + '; available: ' + ', '.join(sorted(available)))
|
| 149 |
variants = EXPERIMENT if experiment2 else {'selected': set(allow_fail)}
|
|
|
|
| 48 |
if status(row.get(key)) not in ACCEPTED}
|
| 49 |
|
| 50 |
|
| 51 |
+
def judge_statuses(cell):
|
| 52 |
+
"""Read per-judge JSON cells and legacy maps without changing review selection."""
|
| 53 |
+
if isinstance(cell, str):
|
| 54 |
+
cell = json.loads(cell)
|
| 55 |
+
if not isinstance(cell, dict):
|
| 56 |
+
return {}
|
| 57 |
+
old = cell.get('verdicts', cell.get('status'))
|
| 58 |
+
if isinstance(old, (dict, list)):
|
| 59 |
+
return dict(old)
|
| 60 |
+
return {model: [r['status'] for r in value['reviews']] if 'reviews' in value
|
| 61 |
+
else [value['status']]
|
| 62 |
+
for model, value in cell.items()
|
| 63 |
+
if isinstance(value, dict) and 'status' in value}
|
| 64 |
+
|
| 65 |
+
|
| 66 |
def judge_failures(row, judge, criteria=JUDGE_CRITERIA):
|
| 67 |
"""Return failed criteria, or None when any required review is unresolved.
|
| 68 |
|
|
|
|
| 72 |
failed = set()
|
| 73 |
for criterion in criteria:
|
| 74 |
cell = row.get(criterion) or {}
|
| 75 |
+
reviews = judge_statuses(cell).get(JUDGES.get(judge, judge), [])
|
| 76 |
if not reviews or any(v not in ACCEPTED | {'fail'} for v in reviews):
|
| 77 |
return None
|
| 78 |
if 'fail' in reviews:
|
|
|
|
| 158 |
rows = table.to_pylist()
|
| 159 |
if judge:
|
| 160 |
available = {model for row in rows for criterion in criteria
|
| 161 |
+
for model in judge_statuses(row.get(criterion))}
|
| 162 |
if JUDGES.get(judge, judge) not in available:
|
| 163 |
raise ValueError('No verdicts for judge ' + judge + '; available: ' + ', '.join(sorted(available)))
|
| 164 |
variants = EXPERIMENT if experiment2 else {'selected': set(allow_fail)}
|
calibforge_v1.1/results.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72b0eb46389b4586d2a698ba7779a23ff4727a492d30f1d8069d5e1c78e074e1
|
| 3 |
+
size 28326364
|