Upload strict640x480-v2/code/make_strict640x480_result_table.py with huggingface_hub
Browse files
strict640x480-v2/code/make_strict640x480_result_table.py
CHANGED
|
@@ -24,7 +24,10 @@ METHODS = [
|
|
| 24 |
|
| 25 |
|
| 26 |
def read_result(root: Path, method: str, task: str):
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
| 28 |
if not path.is_file():
|
| 29 |
return None
|
| 30 |
raw = json.loads(path.read_text(encoding="utf-8"))
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
def read_result(root: Path, method: str, task: str):
|
| 27 |
+
# The watcher writes one audited JSON per task beside the exact final
|
| 28 |
+
# checkpoint. Keeping the path tied to the training run prevents a stale
|
| 29 |
+
# result from a historical run from entering the formal All-5 table.
|
| 30 |
+
path = root / method / "formal_heldout_100" / f"eval_{task}.json"
|
| 31 |
if not path.is_file():
|
| 32 |
return None
|
| 33 |
raw = json.loads(path.read_text(encoding="utf-8"))
|