sessions of 2026-11-18 (the optimization campaign; three runs without summary, interrupted and rerun)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8a81c53cd9
commit
0cfbd1b7bc
363 files changed
+30822
No files matched your search
@@ -0,0 +1,48 @@
|
||||
# Validation
|
||||
|
||||
**Verdict**: keep
|
||||
|
||||
## Answers
|
||||
1. Loads and runs: `categories.py` on LENZSPITZE 2026-10-23 → 2026-11-02 and NORDEND shows no `skipped`, traceback or error. I reran the benchmark at HEAD (2026-11-18, about 48 s) and it matches `benchmark-after.txt` byte for byte, with no `skipped`.
|
||||
2. Nothing goes back: `compare` reports 0 regressions before → after, and 0 at each step (before → S1, S1 → S2, S2 → S3, S3 → after). The only drop is NORDEND Displacement "found" 100 → 0 % (4 instants). It stays under the 20-instant noise floor, so it is not a regression; see Reservations.
|
||||
3. The gain justifies the code: S1 changes one constant (no added line) and removes 2916 wrongly flagged instants on the range (Displacement flagged 2943 → 27). Displacement `Total` "correct" goes 18 → 41 % (+23 points) and "found" goes 98 → 98 %. S2 and S3 are pruning: 611 → 606 code lines and 48 → 46 constants, with no regression and every other figure unchanged.
|
||||
4. No overfitting: `SIZE` = 2.0 is a round value. It sits between the false whole-window drifts it removes (1.0 to 1.4 amplitudes, per `thresholds.md`) and the labelled drift it keeps (2.6). It is not cut to the edge of this range. The WILDSTRUBEL drift stays found: the Total loses only NORDEND's 4 instants. Removing `DAYS` stays consistent. The step condition (`step <= |d|/2`) already rejects two-day runs in both `_whole` and `_pieces`, so a drift still needs three days. The literal `>= 2` guard keeps `_whole` from taking a median of an empty list.
|
||||
5. The target's rules are respected: only `scripts/displacement.py` and `thresholds.md` change, one commit per fix, and `bench/` is untouched. No rule depends on a station, a sensor or a date; the station names in the comment and in `thresholds.md` are history references only. The docstring comment and the `thresholds.md` lines are updated together. `grep` finds no leftover `DAYS` or `STEADY`.
|
||||
|
||||
## The range
|
||||
LENZSPITZE 2026-10-23T00:00Z → 2026-11-02T00:00Z, 63 labels, before → after:
|
||||
|
||||
| Family | found | correct |
|
||||
|---|---|---|
|
||||
| Displacement | — → — | 0/2943 (0 %) → 0/27 (0 %) |
|
||||
| No data | 4/6 (67 %) → same | 4/4 (100 %) → same |
|
||||
| Obstruction | 17/58 (29 %) → same | 17/486 (3 %) → same |
|
||||
| Perturbation | 1/6 (17 %) → same | 1/426 (0 %) → same |
|
||||
| Thermal displacement | 1342/1469 (91 %) → same | 1342/2611 (51 %) → same |
|
||||
| Visibility | 817/1166 (70 %) → same | 817/875 (93 %) → same |
|
||||
|
||||
The whole gain comes from S1. S2 and S3 leave the range unchanged.
|
||||
|
||||
## Checks
|
||||
range: only Displacement "correct" changes, 0/2943 → 0/27 (S1); everything else is identical.
|
||||
|
||||
benchmark, lines that changed (before → after):
|
||||
- LENZSPITZE 2026-10-16 → 2026-11-01, Displacement correct: 0/4640 (0 %) → 0/6 (0 %)
|
||||
- NORDEND 2026-08-10 → 2026-11-08, Displacement: found 4/4 (100 %) → 0/4 (0 %); correct 4/8549 (0 %) → 0/1 (0 %)
|
||||
- Total Displacement: 4378/4462 (98 %) / 4378/23929 (18 %) → 4374/4462 (98 %) / 4374/10747 (41 %)
|
||||
- Complexity: 611 code lines, 48 constants → 606 code lines, 46 constants
|
||||
|
||||
`compare` before → after:
|
||||
```
|
||||
NORDEND Displacement found 100 → 0 % (4 instants lost)
|
||||
Total Displacement correct 18 → 41 %
|
||||
|
||||
0 regression(s); complexity: 611 code lines, 48 constants → 606 code lines, 46 constants
|
||||
```
|
||||
`compare` after each fix: before → S1 shows the same two lines with complexity unchanged (611 / 48). S1 → S2: 0 regressions, 611 → 607 lines, 48 → 47 constants. S2 → S3: 0 regressions, 607 → 606 lines, 47 → 46 constants. S3 → after: identical files.
|
||||
|
||||
## Reservations
|
||||
- NORDEND, Displacement, "found" 4/4 (100 %) → 0/4 (0 %). Before, these 4 labelled instants were "found" only because a whole-window Slow drift flagged 8549 instants (0 % correct). The labels NORDEND-276, NORDEND-309, NORDEND-94 and NORDEND-250 describe sudden jumps or camera steps, not a slow drift. They are this detector's business only by accident. Losing them is the noise of a few instants, and the reading is consistent.
|
||||
|
||||
## Tools
|
||||
none
|
||||
Reference in new issue
Block a user