Files
aimsight-optimizer/sessions/WILDSTRUBEL_2026-09-24T0230_2026-10-06T1945_20261118T1119Z/validation.md
T

63 lines
4.6 KiB
Markdown
Raw Normal View History

# Validation
**Verdict**: keep
## Answers
1. Loads and runs: I reran the benchmark at HEAD (75276f9). It has no `skipped` line and matches benchmark-after.txt exactly. The range score also matches range-after.txt.
2. Nothing goes back: `compare` before → after gives 0 regressions, and so does each fix against the previous one (S1 to S6). The drops stay under the thresholds (see Reservations).
3. The gain justifies the code: complexity goes from 606 lines and 46 constants to 602 lines and 45 constants. S1 changes 1 line and adds 2 points of Thermal displacement "found" Total. S2 to S6 remove conditions and one constant (`WARM`). Together they add 9 points of Obstruction "found" Total and 0.4 points of "correct". S2 and S4 change no figure, but they are removals, so they are kept as pruning.
4. No overfitting: S1 widens a rule (every measured day, not only full days). S2, S3, S5 and S6 only remove conditions. The gains reach five stations (BREITHORN, LENZSPITZE, NIEDERHORN, NORDEND and WILDSTRUBEL), not only the range's station.
5. Target rules respected: only `scripts/*.py` and `thresholds.md` changed. Nothing in the code is specific to a station, sensor or date (WILDSTRUBEL appears only in docstring history references). The `WARM` line was removed from `thresholds.md`, docstrings are updated, and `bench/` is untouched.
## The range
WILDSTRUBEL 2026-09-24 → 2026-10-07, before → after:
| Family | found | correct |
|---|---|---|
| Displacement | 0/500 (0 %) → unchanged | — |
| No data | 15/19 (79 %) → unchanged | 15/21 (71 %) → unchanged |
| Obstruction | 72/694 (10 %) → 138/694 (20 %) | 72/201 (36 %) → 138/285 (48 %) |
| Perturbation | 1/44 (2 %) → unchanged | 1/4 (25 %) → unchanged |
| Target issue | 957/975 (98 %) → unchanged | 957/958 (100 %) → unchanged |
| Thermal displacement | 144/204 (71 %) → 196/204 (96 %) | 144/249 (58 %) → 196/387 (51 %) |
| Visibility | 94/96 (98 %) → unchanged | 94/486 (19 %) → unchanged |
## Checks
Benchmark, `compare` before → after:
```
BREITHORN Obstruction found 92 → 100 %
BREITHORN Obstruction correct 53 → 55 %
CLARIDEN Obstruction correct 20 → 11 % (4 instants lost)
FLORIDA Thermal displacement correct 43 → 41 % (52 instants lost)
JUNGFRAU Thermal displacement found 97 → 100 %
LENZSPITZE Obstruction found 32 → 43 %
LENZSPITZE Obstruction correct 6 → 4 % (473 instants lost)
NIEDERHORN Obstruction found 43 → 55 %
NIEDERHORN Obstruction correct 35 → 38 %
NIEDERHORN Thermal displacement found 86 → 89 %
NIEDERHORN Thermal displacement correct 86 → 87 %
NORDEND Obstruction found 31 → 40 %
SNCF01 Thermal displacement found 78 → 87 %
SNCF01 Thermal displacement correct 92 → 89 % (59 instants lost)
Total Obstruction found 31 → 40 %
Total Obstruction correct 27 → 28 %
Total Thermal displacement found 80 → 82 %
Total Thermal displacement correct 70 → 69 % (385 instants lost)
WILDSTRUBEL Obstruction found 24 → 35 %
WILDSTRUBEL Obstruction correct 35 → 41 %
WILDSTRUBEL Thermal displacement found 72 → 100 %
0 regression(s); complexity: 606 code lines, 46 constants → 602 code lines, 45 constants
```
Each fix against the previous one: every fix gives 0 regressions. S1 accounts for all the Thermal displacement lines. S2 changes nothing. S3 gives WILDSTRUBEL Obstruction +2/+1. S4 changes nothing. S5 and S6 account for the Obstruction lines; with S5, NORDEND Obstruction "correct" goes 47 → 45 % (234 instants), and S6 brings it back to 47 %.
## Reservations
- No `REGRESSION` line had to be set aside. These drops stay under the thresholds:
- Total Thermal displacement "correct": 69.7 → 68.8 %, 703 more instants flagged. S1 now emits the wave on partial days.
- LENZSPITZE Obstruction "correct": 6 → 4 % (958 instants flagged against 94 labelled). The short-sensor-rejection branch of S5 and S6 adds about 500 instants that no Obstruction label covers. This is on top of a family that was already noisy at this station.
- Wording: the variety is still called "Brief obstruction", but it now also covers sensors rejected for a long time. `categories.MERGE` joins their instants into one event. This is a naming point, not a scoring one.
## Tools
none