69 lines
6.3 KiB
Markdown
69 lines
6.3 KiB
Markdown
# Validation
|
||||
|
|
|
|||
|
|
**Verdict**: keep
|
|||
|
|
|
|||
|
|
## Answers
|
|||
|
|
1. Loads and runs: the benchmark rerun at HEAD (2026-11-18 UTC) has no `skipped` line and is identical to `benchmark-after.txt`; `categories.py` on ALASKA runs. The seven families are still there and the episode contract holds (`episode()` sorts `sensors`, so passing the dict of targets gives the list of names).
|
|||
|
|
2. Nothing goes back: compare gives one `REGRESSION`, Total No data correct 80 → 77 % (13 instants), and it comes only from S1. I count it as "Not a regression" (bounds of labels, a gap between two labels of the same phenomenon; see Reservations). S2 to S5 have no `REGRESSION` line, and every per-station drop stays under 20 instants.
|
|||
|
|
3. The gain justifies the code: +14 code lines and +1 constant overall. S2 (+15 lines, +1 constant) earns them: Total Perturbation found 4 → 7 % (+3 points), correct 1 → 2 %. S1 changes one value: Total No data found 32 → 45 %. S3, S4 and S5 are pruning: S3 changes no figure, S4 removes 1 line and adds +3 points on Total Perturbation found, S5 adds +1 point and drops the cap the families document contradicted ("what comes back, even after days, is Perturbation").
|
|||
|
|
4. No overfitting: MISSING = 1 follows the families document ("a missing point alone ... is not one", all curves missing is No data). Each new No data event on CLARIDEN, SNCF01 and WILDSTRUBEL falls on a label. K_TOGETHER = 5 is a noise multiple, and its rule ("back at the next measurement") is generic and matches families.md, "A hindered reference ... the targets move together because of it". The gain is spread over ALASKA, MICHIGAN, NORDEND, WYOMING, LENZSPITZE and JUNGFRAU.
|
|||
|
|
5. The target's rules: only `scripts/*.py` and `thresholds.md` changed, one commit per fix. Each added or changed constant has its line in `thresholds.md` and an updated docstring. There is no rule specific to a station, sensor or date. "ALASKA 2026-11-04, S<n>" appears only as a run reference in comments.
|
|||
|
|
|
|||
|
|
## The range
|
|||
|
|
ALASKA, 2026-11-04 → 2026-11-17, labeling/auto/ALASKA.jsonl
|
|||
|
|
|
|||
|
|
| Family | found before → after | correct before → after |
|
|||
|
|
|---|---|---|
|
|||
|
|
| No data | 0/2 (0 %) → 2/2 (100 %) | — → 2/2 (100 %) |
|
|||
|
|
| Obstruction | — → — | 0/14 (0 %) → 0/14 (0 %) |
|
|||
|
|
| Perturbation | 1/256 (0 %) → 15/256 (6 %) | 1/1 (100 %) → 15/18 (83 %) |
|
|||
|
|
| Thermal displacement | 240/353 (68 %) → 240/353 (68 %) | 240/949 (25 %) → 240/949 (25 %) |
|
|||
|
|
| Visibility | 41/47 (87 %) → 41/47 (87 %) | 41/162 (25 %) → 41/162 (25 %) |
|
|||
|
|
|
|||
|
|
## Checks
|
|||
|
|
compare before → after:
|
|||
|
|
```
|
|||
|
|
ALASKA No data found 0 → 100 %
|
|||
|
|
ALASKA Perturbation found 0 → 6 %
|
|||
|
|
ALASKA Perturbation correct 100 → 80 % (3 instants lost)
|
|||
|
|
CLARIDEN No data found 46 → 62 %
|
|||
|
|
CLARIDEN No data correct 92 → 83 % (2 instants lost)
|
|||
|
|
FLORIDA No data found 19 → 29 %
|
|||
|
|
JUNGFRAU No data found 14 → 21 %
|
|||
|
|
JUNGFRAU Perturbation found 0 → 50 %
|
|||
|
|
JUNGFRAU Perturbation correct 0 → 1 %
|
|||
|
|
LENZSPITZE No data found 55 → 68 %
|
|||
|
|
LENZSPITZE No data correct 71 → 52 % (9 instants lost)
|
|||
|
|
LENZSPITZE Perturbation found 0 → 14 %
|
|||
|
|
MICHIGAN Perturbation found 0 → 25 %
|
|||
|
|
NIEDERHORN Displacement found 2 → 0 % (1 instants lost)
|
|||
|
|
NORDEND No data found 17 → 38 %
|
|||
|
|
NORDEND Perturbation found 4 → 8 %
|
|||
|
|
SNCF01 No data found 33 → 40 %
|
|||
|
|
SNCF01 No data correct 62 → 63 %
|
|||
|
|
Total No data found 32 → 45 %
|
|||
|
|
REGRESSION Total No data correct 80 → 77 % (13 instants lost)
|
|||
|
|
Total Perturbation found 4 → 11 %
|
|||
|
|
Total Perturbation correct 1 → 2 %
|
|||
|
|
WILDSTRUBEL No data found 67 → 76 %
|
|||
|
|
WILDSTRUBEL No data correct 73 → 74 %
|
|||
|
|
WILDSTRUBEL Perturbation correct 20 → 14 % (2 instants lost)
|
|||
|
|
WYOMING No data found 0 → 100 %
|
|||
|
|
WYOMING Perturbation found 36 → 86 %
|
|||
|
|
WYOMING Perturbation correct 100 → 57 % (9 instants lost)
|
|||
|
|
|
|||
|
|
1 regression(s); complexity: 603 code lines, 48 constants → 617 code lines, 49 constants
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
Per fix, in order: before → S1 has 1 regression (the line above), 603 → 603 lines, 48 → 48 constants. S1 → S2 has 0 regressions, 603 → 618 lines, 48 → 49 constants. S2 → S3 has 0 regressions and no changed figure. S3 → S4 has 0 regressions, 618 → 617 lines. S4 → S5 has 0 regressions, 617 → 617 lines.
|
|||
|
|
|
|||
|
|
## Reservations
|
|||
|
|
- Total, No data, correct 80 → 77 % (13 wrongly flagged instants added, all from S1), counted as "Not a regression":
|
|||
|
|
- LENZSPITZE (71 → 52 %, 9 instants): on the night of the shared outage at the start of the history, the hole at 02:55 now joins the episodes before 02:10 and after 03:10, so the measured instants 02:10–02:55 are flagged. The label LENZSPITZE-2 (02:55–04:00) describes "several short gaps in a row" of the same outage, which began around 23:00. These are the bounds of a label and a gap of a few measurements within the same phenomenon.
|
|||
|
|
- CLARIDEN (2), SNCF01 (1), WILDSTRUBEL (1): the new or extended No data events fall on labels (CLARIDEN-57, -58, -34; SNCF01-69, -78; WILDSTRUBEL-119, -154, -182). The extra instants are at their edges.
|
|||
|
|
- In return, Total No data found 32 → 45 % (+32 labelled instants).
|
|||
|
|
- S1 replaces the user's rule of 2026-10-23 ("more than 2 missing steps is a hole") with "2 missing steps"; `thresholds.md` says so. The user should know about this change.
|
|||
|
|
- Per-station Perturbation drops under the threshold: WYOMING correct 100 → 57 % (9 instants, S2 and S4), ALASKA correct 100 → 80 % (3), WILDSTRUBEL correct 20 → 14 % (2), NORDEND correct −7 instants in S4. NIEDERHORN Displacement found 2 → 0 % (1 instant, S5). All are noise by the rule, and Total Perturbation correct rises.
|
|||
|
|
|
|||
|
|
## Tools
|
|||
|
|
none
|