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,133 @@
|
||||
# optimize: LENZSPITZE, 2026-10-16 → 2026-10-24
|
||||
|
||||
**Result**: modification kept
|
||||
**Tools changed**: scripts/ranges.py
|
||||
|
||||
## The range
|
||||
|
||||
LENZSPITZE, 2026-10-16T00:00Z → 2026-10-24T00:00Z, 47 labels, before → end:
|
||||
|
||||
| Family | found | correct |
|
||||
|---|---|---|
|
||||
| Displacement | — | 0/14 → 0/14 |
|
||||
| No data | 16/16 (100 %) → 16/16 (100 %) | 16/33 (48 %) → 16/33 (48 %) |
|
||||
| Obstruction | 23/42 (55 %) → 23/42 (55 %) | 23/352 (7 %) → 23/363 (6 %) |
|
||||
| Perturbation | 0/1 (0 %) → 0/1 (0 %) | 0/149 (0 %) → 0/149 (0 %) |
|
||||
| Thermal displacement | 1009/1009 (100 %) → 1009/1009 (100 %) | 1009/2288 (44 %) → 1009/2288 (44 %) |
|
||||
| Visibility | 971/1561 (62 %) → 974/1561 (62 %) | 971/980 (99 %) → 974/983 (99 %) |
|
||||
|
||||
## Elsewhere
|
||||
|
||||
```
|
||||
Total Obstruction found 40 → 42 %
|
||||
Total Perturbation found 8 → 7 % (3 instants lost)
|
||||
Total Visibility found 56 → 57 %
|
||||
ALASKA Perturbation found 6 → 5 % (1 instants lost)
|
||||
ALASKA Perturbation correct 80 → 79 % (0 instants lost)
|
||||
ALASKA Visibility found 87 → 100 %
|
||||
ALASKA Visibility correct 33 → 36 %
|
||||
BREITHORN Obstruction correct 55 → 54 % (1 instants lost)
|
||||
CLARIDEN Obstruction correct 11 → 7 % (6 instants lost)
|
||||
FLORIDA Visibility found 70 → 76 %
|
||||
LENZSPITZE Visibility correct 99 → 98 % (7 instants lost)
|
||||
NIEDERHORN Obstruction found 55 → 56 %
|
||||
NIEDERHORN Obstruction correct 38 → 37 % (9 instants lost)
|
||||
NIEDERHORN Visibility found 42 → 55 %
|
||||
NIEDERHORN Visibility correct 78 → 81 %
|
||||
NORDEND Obstruction found 40 → 43 %
|
||||
NORDEND Obstruction correct 47 → 48 %
|
||||
NORDEND Perturbation found 4 → 0 % (1 instants lost)
|
||||
NORDEND Perturbation correct 5 → 0 % (0 instants lost)
|
||||
SNCF01 Obstruction found 76 → 95 %
|
||||
SNCF01 Obstruction correct 2 → 3 %
|
||||
WYOMING Obstruction correct 100 → 21 % (11 instants lost)
|
||||
WYOMING Perturbation found 86 → 79 % (1 instants lost)
|
||||
WYOMING Perturbation correct 57 → 61 %
|
||||
|
||||
0 regression(s); complexity: 613 code lines, 47 constants → 609 code lines, 46 constants
|
||||
```
|
||||
|
||||
## What changed
|
||||
|
||||
- S1 (f4cf05d): `visibility.py` rule 1: a measurement is high when it is more than K_MAD MAD above its sensor's median, without also needing `x > FACTOR * med`.
|
||||
- S2 (0bd560f): rule 4: a diffuse run of at least RUN_MIN instants is always a Poor visibility "reduced", even inside heat shimmer or another Poor visibility (the `hosts` list removed).
|
||||
- S3 (fc422f1): rule 3: the Poor visibility runs of a sensor no longer exclude the instants of a salient brief obstruction (the `briefs` set removed).
|
||||
- S4 (ec3958c): rule 2: constant `BRIEF_MIN` (3 sensors) removed; a brief obstruction needs at least one high sensor, still SALIENCE times more than at each neighbouring instant.
|
||||
|
||||
Upgrader: changed. Validator: keep.
|
||||
|
||||
## For the user to decide
|
||||
|
||||
From the modification, "Limits":
|
||||
|
||||
- LENZSPITZE-77 (2026-10-18T05:05Z → 06:35Z, Visibility), LENZSPITZE-83 (2026-10-20T05:00Z → 06:25Z, Visibility), LENZSPITZE-37 (2026-10-23T14:01Z → 14:30Z, Visibility) and the partial passages LENZSPITZE-74 (2026-10-17T09:00Z → 09:45Z), 75 (10:00Z → 10:55Z), 86 (2026-10-20T15:00Z → 15:20Z), 89 (2026-10-23T13:30Z → 13:45Z), all Obstruction. A few targets lose light without being rejected. Only the flux shows the cause. Flux is read only by recent cameras, and among the labelled stations only LENZSPITZE has it. A flux rule could be validated on more than one station only once others have such cameras.
|
||||
- The rain hours whose error_value stays near its median (LENZSPITZE-13, 26, 30, 35, 78): the same, the flux sees them (0.45 to 0.8 of its median). In LENZSPITZE-78, 10-18 22:00 → 10-19 07:00, neither error_value nor flux differs from a calm night. Only the corrected curves (or an image) could say it is still raining.
|
||||
- Mist on the distant references against a cobweb over a reference (see "For the user to decide"): only the image tells them apart.
|
||||
- No label of the range is said to be wrong by the report. It notes that LENZSPITZE-81 and 82 are the same effect on either side of the noise threshold (only 82 kept).
|
||||
|
||||
From the modification, "For the user to decide":
|
||||
|
||||
- S4 (no minimum of sensors for a salient brief obstruction) adds one- to three-sensor Brief obstructions. On this range they add 11 wrong Obstruction instants, mostly inside rain (Visibility labels LENZSPITZE-30, 33, 34, 18). WYOMING Obstruction correct falls 100 → 21 % (11 instants) and CLARIDEN 11 → 7 % (6 instants). All of this is under the noise thresholds, and Total Obstruction found rises 2 points. Kept as a pruning without a regression.
|
||||
- The rejected distant references at night (LENZSPITZE-1, 73, 34, 35: Visibility, the far end of the scene in mist) look the same in the measurements as a cobweb thread over one reference (NORDEND-231, 236, 239: Obstruction, seen on the thumbnails). A sensor is rejected alone, at its threshold, while a Poor visibility episode is running. The detectors keep reading both as Obstruction, which follows the NORDEND labels. Reading them as Visibility would cost NORDEND Obstruction found 40 → 33 % (212 instants, a regression).
|
||||
|
||||
From the validation, "Reservations":
|
||||
|
||||
- WYOMING, Obstruction correct, 3/3 (100 %) → 3/14 (21 %). Caused by S4: with no minimum number of sensors, one salient high sensor is enough for a brief obstruction. That adds 11 flagged instants that no label puts in Obstruction. It is under 20 instants, so it is not a regression. I did not check these instants against the labels' ids.
|
||||
- CLARIDEN, Obstruction correct, 11 → 7 % (6 instants). NIEDERHORN, Obstruction correct, 38 → 37 % (9 instants). Same cause (S1, then S4). Both are under the thresholds.
|
||||
- Total, Perturbation found, 28/358 (8 %) → 25/358 (7 %): one instant lost on each of ALASKA, NORDEND and WYOMING, all by S4 (and S1 for WYOMING). This is 1 point, not more than 1 point, so it is under the threshold. Perturbation is not a Visibility family: these few instants are most likely now counted as Obstruction on the same instants. Not checked against the labels.
|
||||
- The range gain itself is close to nil (+3 Visibility instants). Keeping the change rests on the pruning (code and a constant removed) and on the benchmark gains, not on the range.
|
||||
|
||||
## Not fixed
|
||||
|
||||
- The Obstruction events in the night mist (about 300 wrong instants on the range). I tried leaving a sensor rejected alone to the Visibility episode it falls in: (a) any Visibility episode, (b) Poor visibility only, (c) Poor visibility counting that same sensor. On the range this raises Obstruction correct from 7 % to 30 % (a) or 9 % (c). On the benchmark it costs NORDEND Obstruction found 7 points (212 instants) and Total Obstruction found 3 to 8 points: a regression each time (see "For the user to decide").
|
||||
- The thermal event running over the whole range (1279 wrong instants). Chaining slides at most 3 h or 12 h apart instead of a day: LENZSPITZE Thermal found 92 → 65 % or 81 %, WYOMING 50 → 28 % or 33 %, Total 81 → 77 % or 79 %, which is a regression. The thermal cycle of this station lives on one target (1020), below the SHARE of targets the wave needs.
|
||||
- Rain hours with error_value barely raised (LENZSPITZE-13, 26, 30, 35, 78) and the Perturbations they leave unabsorbed. A condition "more than half of the sensors at half their usual flux or less" added to the diffuse nuisance earns only 10 instants on the range. Not worth a constant, so it was not committed.
|
||||
- LENZSPITZE-84 (camera jolt), LENZSPITZE-77 and 83 (targets dimming before dawn), the partial passages LENZSPITZE-74, 75, 86, 89: see Limits.
|
||||
- The two "Jump, not back yet" events inside LENZSPITZE-38: an artefact of the range's end (14 instants). Absorbing every jump into Visibility would also hide a real displacement during rain.
|
||||
|
||||
## Reading tools
|
||||
|
||||
What I decided:
|
||||
|
||||
- `ranges.py`: changed (S1, commit e03d911). In the `--labels` section, each label's line ends with `as far around`: n/m, where m is the number of measurements of the same sensor-column within `--margin` before the start and after the end (outside the label), and n is how many of them deviate from the level at least as much as the largest deviation inside. This is `neighbours.py` made general, inside an existing option, as values with no threshold. Existing options and outputs are unchanged.
|
||||
- `neighbours.py`: not added as a script, superseded by the option above.
|
||||
- `requalify.py`: not added. Once the count exists, the loop is one `ranges.py --labels F --rolling 12 --margin 3h` run.
|
||||
- `thermal.py`, `bounds.py`, `scan.py`, `win.py`, `build.py`: left in the analysis. They are specific to this range or covered by `days.py`, `ranges.py --labels` and `quality.py`.
|
||||
- No removal.
|
||||
|
||||
What changed:
|
||||
|
||||
- S1, e03d911, `scripts/ranges.py`: in the per-label line of `--labels`, after `instants > k`, a new column `as far around` (n/m) for the sensor-column of the largest deviation inside. It follows the same level (window median, or rolling with `--rolling`) and covers the measurements within `--margin` on both sides, outside the label. The heading lines and the docstring (item 4) explain it. Nothing else changes.
|
||||
|
||||
`data.py`: unchanged.
|
||||
|
||||
(The tools upgrader also proposes two `GUIDE.md` sentences for the new column, under "For the user to decide" of `tools.md`; `GUIDE.md` was already modified and was left alone.)
|
||||
|
||||
## Scripts of the agents
|
||||
|
||||
From the modification:
|
||||
|
||||
- `sessions/LENZSPITZE_2026-10-16T0235_2026-10-23T2355_20261118T1434Z/tools/perlabel.py <detectors> <station> <labels.jsonl> <from> <to>`: per label, its instants found by its family and the other families there; per event, its instants and how many are wrong. Worth keeping (the event-by-event diagnosis).
|
||||
- `…/tools/table.py <perlabel output>`: the table labelled / found / flagged / wrongly per family. Worth keeping with perlabel.py.
|
||||
- `…/tools/prune.py <detectors> <tools> <work> [variant …]`: one copy of the detectors per rule of `visibility.py` removed (string replacements); fails if a rule's text changed. Worth keeping as a pattern; the list of variants is specific to `visibility.py`.
|
||||
- `…/tools/slides.py <detectors> <station> <from> <to>`: the camera-slide instants of `thermal_displacement.slides` per day, and the runs they make for several chaining gaps. Useful for a station that falls back to slides.
|
||||
- `…/tools/wave.py <detectors> <station> <from> <to> [history]`: per target and axis, the day likeness and the 24 h R² of `thermal_displacement._wave`. Useful to see why a wave is not found.
|
||||
- `…/tools/diffuse.py <detectors> <station> <from> <to> <show from> <show to>`: hour by hour, median z of error_value, high and rejected counts, median flux ratio. Useful for Visibility.
|
||||
|
||||
From the validation: none.
|
||||
|
||||
## Errors
|
||||
|
||||
- None.
|
||||
- Files already modified: detectors: none; tools: `GUIDE.md` (left as it is).
|
||||
- Detectors base 90c2345735bb63a0e6d677cdd8fb5d678abdcbc1; `git -C detectors log --oneline <base>..HEAD`:
|
||||
```
|
||||
ec3958c improve: S4
|
||||
fc422f1 improve: S3
|
||||
0bd560f improve: S2
|
||||
f4cf05d improve: S1
|
||||
```
|
||||
- Tools base f57e6ea045b9e9b3b31488f09f619f29edb063b2; `git -C tools log --oneline <tools base>..HEAD`:
|
||||
```
|
||||
e03d911 improve: S1
|
||||
```
|
||||
Reference in new issue
Block a user