Label keys start/end/family in the bench and the docs (benchmark unchanged); knowledge path in data.py
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b01a9116d0
commit
0abba2d0ed
5 files changed
+10
-10
No files matched your search
+2
-2
@@ -20,10 +20,10 @@ from data import iso, parse_time # on the path through score
|
||||
def label_range(path):
|
||||
"""Labels JSONL -> (start, end) iso, in whole UTC days, end excluded."""
|
||||
labels = score.read_labels(path)
|
||||
start = min(e["debut"] for e in labels)[:10]
|
||||
start = min(e["start"] for e in labels)[:10]
|
||||
# ponytail: the end of the labelled batch is not written; midnight closest to the last bound (a label bound
|
||||
# overflows by one measurement after midnight)
|
||||
end = iso(parse_time(max(e["fin"] for e in labels)) + timedelta(hours=12))[:10]
|
||||
end = iso(parse_time(max(e["end"] for e in labels)) + timedelta(hours=12))[:10]
|
||||
return iso(parse_time(start)), iso(parse_time(end))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user