Step 2: the evaluator (the measure of bench/score.py on predictions per instant; the rules reproduce it exactly)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
maximeandClaude Opus 5.5 committed 2026-11-16 16:25:03 +01:00
1 parent b2d3734152
commit c04cbc90bb
4 files changed
+153 -1

No files matched your search

+1 -1
View File
@@ -170,7 +170,7 @@ def build(folder, labels, start, end, data):
c_names, xc = station_features(f, kinds, grid, data.load_camera(folder), data.load_temperature(folder), measurements)
keep = np.array([start <= data.iso(t) < end for t in grid])
instants = [data.iso(t) for t in grid[keep]]
return {"instants": np.array(instants), "sensors": np.array(list(kinds)), "kinds": np.array(list(kinds.values())),
return {"start": np.array(start), "end": np.array(end), "instants": np.array(instants), "sensors": np.array(list(kinds)), "kinds": np.array(list(kinds.values())),
"xs": xs[keep].astype(np.float32), "xs_names": np.array(s_names),
"xc": xc[keep].astype(np.float32), "xc_names": np.array(c_names),
"y": label_families(labels, instants), "families": np.array(FAMILIES)}