Commit ·
e776436
1
Parent(s): 65e41ab
v2.6 generator update
Browse files- .gitignore +8 -1
- README.md +88 -63
- docs/DRMHB.pdf +2 -2
- docs/GROUND_TRUTH.md +8 -2
- docs/provenance/current_dataset.json +564 -0
- examples/README.md +4 -4
- notebooks/DRMHB_EDA.ipynb +511 -139
- tools/audit_dataset.py +155 -0
- tools/build_report.py +115 -0
.gitignore
CHANGED
|
@@ -1,7 +1,14 @@
|
|
| 1 |
latexdocs/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
generator.py
|
| 3 |
*/uv.lock
|
| 4 |
**/.venv
|
| 5 |
*.h5ad
|
| 6 |
**/__pycache__/
|
| 7 |
-
derived/**/*
|
|
|
|
| 1 |
latexdocs/
|
| 2 |
+
docs/*.aux
|
| 3 |
+
docs/*.fdb_latexmk
|
| 4 |
+
docs/*.fls
|
| 5 |
+
docs/*.log
|
| 6 |
+
docs/*.out
|
| 7 |
+
docs/*.toc
|
| 8 |
+
docs/*.synctex.gz
|
| 9 |
generator.py
|
| 10 |
*/uv.lock
|
| 11 |
**/.venv
|
| 12 |
*.h5ad
|
| 13 |
**/__pycache__/
|
| 14 |
+
derived/**/*
|
README.md
CHANGED
|
@@ -36,11 +36,12 @@ machinery condition monitoring. It represents 180 calendar days for a fleet of
|
|
| 36 |
All measurements are synthetic. DRMHB is not field data and is not a substitute
|
| 37 |
for validation on real machinery.
|
| 38 |
|
| 39 |
-
The ZIPs
|
| 40 |
-
paired controls. The conversion examples use
|
| 41 |
[`vibframe-anndata==0.3.0`](https://413hq.github.io/vibframe-anndata-docs/0.3.0/)
|
| 42 |
-
with complete evaluation preservation. The
|
| 43 |
-
|
|
|
|
| 44 |
|
| 45 |
**Start here:** [dataset report](docs/DRMHB.pdf), [conversion examples](examples/README.md)
|
| 46 |
and [complete ground-truth guide](docs/GROUND_TRUTH.md).
|
|
@@ -96,22 +97,24 @@ The 46,907 observations are divided as follows:
|
|
| 96 |
|
| 97 |
| Split | Rows | Intended use |
|
| 98 |
|---|---:|---|
|
| 99 |
-
| `calibration` |
|
| 100 |
-
| `normal_holdout` | 3,
|
| 101 |
-
| `future_stream` | 35,
|
| 102 |
|
| 103 |
Acquisition is deliberately non-uniform:
|
| 104 |
|
| 105 |
| Context | Policy | Realized rows |
|
| 106 |
|---|---|---:|
|
| 107 |
-
| Startup transition |
|
| 108 |
-
| Shutdown transition |
|
| 109 |
-
| Internal regime transition |
|
| 110 |
-
| Stable running |
|
| 111 |
| OFF | Every 8 hours | 3,408 |
|
| 112 |
|
| 113 |
-
|
| 114 |
-
|
|
|
|
|
|
|
| 115 |
Temporal plots and persistence metrics must use timestamps rather than row index.
|
| 116 |
|
| 117 |
## Signal acquisition and storage
|
|
@@ -123,7 +126,10 @@ that complete source realization:
|
|
| 123 |
- `VEL_1K`: velocity spectrum from 0 to 1,000 Hz;
|
| 124 |
- `ACC_10K`: acceleration spectrum from 0 to 10,000 Hz.
|
| 125 |
|
| 126 |
-
|
|
|
|
|
|
|
|
|
|
| 127 |
the dataset contains 281,442 spectral signals.
|
| 128 |
|
| 129 |
The persisted waveform branch is anti-alias filtered and decimated to 25.6 kHz.
|
|
@@ -132,12 +138,14 @@ Its length is time-based rather than revolution-normalized:
|
|
| 132 |
| Stored window | Samples/channel | Role |
|
| 133 |
|---|---:|---|
|
| 134 |
| 0.25 s | 6,400 | Ordinary OFF observation |
|
| 135 |
-
| 0.
|
| 136 |
-
|
|
|
|
|
| 137 |
|
| 138 |
-
The current fixture contains 3,240 short OFF windows,
|
| 139 |
-
and
|
| 140 |
-
140,721 waveform signals and
|
|
|
|
| 141 |
|
| 142 |
Waveforms are quantized to an int16-equivalent grid and reconstructed as
|
| 143 |
physical-unit float32 values to remain compatible with VibFrame 0.2.
|
|
@@ -147,7 +155,8 @@ physical-unit float32 values to remain compatible with VibFrame 0.2.
|
|
| 147 |
Healthy active observations may contain low-probability disturbances such as
|
| 148 |
RPM drift, load transients, electrical interference, sensor-noise bursts and
|
| 149 |
transient impacts. The current fixture contains 1,756 such rows. Three healthy
|
| 150 |
-
machines
|
|
|
|
| 151 |
|
| 152 |
Fault distribution:
|
| 153 |
|
|
@@ -194,7 +203,8 @@ Snapshot joins use **source, machine and integer UTC-microsecond `snap_t`**, not
|
|
| 194 |
row order. Per-waveform joins also identify the raw channel. Capture `t` can be
|
| 195 |
later than `snap_t` because of cropping; it is not a different snapshot.
|
| 196 |
|
| 197 |
-
The
|
|
|
|
| 198 |
instead of hard-coding a fixed schema. Do not use `split`, `fault_*`, severity,
|
| 199 |
physical states, `ood_operational`, nuisance labels or DiagGT as unsupervised
|
| 200 |
model inputs. Operational-state knowledge must be an explicitly declared
|
|
@@ -228,8 +238,7 @@ python examples/05_read_evaluation.py derived/DRMHB-compact.v0.3.0.features.h5ad
|
|
| 228 |
|
| 229 |
Example 01 explicitly enables `ground_truth.scope="all"`, stores numerical
|
| 230 |
values as `float32`, and ingests in raw-data blocks of 8 MiB. The featureless base
|
| 231 |
-
has `X.shape == (46907, 0)` for the current longitudinal ZIP. The
|
| 232 |
-
feature requests materialized 468 machine/source-scoped columns in the reference
|
| 233 |
EDA, with structural missing values for other machines. They are not 468 dense
|
| 234 |
fleet-wide descriptors; the notebook explains the logical-column alignment.
|
| 235 |
|
|
@@ -256,11 +265,12 @@ in waveform truth.
|
|
| 256 |
|
| 257 |
### Storage and memory
|
| 258 |
|
| 259 |
-
The
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
|
|
|
| 264 |
|
| 265 |
The default 512 MiB sidecar budget covers original encoded annotation files,
|
| 266 |
not decoded tables or total process RAM. Inspect exact archived sizes with
|
|
@@ -304,56 +314,71 @@ hours; an observation gap longer than 4.5 hours breaks the run.
|
|
| 304 |
|
| 305 |
## Compact reference baseline
|
| 306 |
|
| 307 |
-
The values below come from
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
The reference notebook fits four deliberately small unsupervised baselines.
|
| 312 |
-
Thresholds are the 99th percentile of normal-holdout scores.
|
| 313 |
|
| 314 |
| Model | AUROC | AUPRC | F1 | Healthy FPR | Transition FPR | OOD FPR | Median delay |
|
| 315 |
|---|---:|---:|---:|---:|---:|---:|---:|
|
| 316 |
-
| Robust distance | 0.
|
| 317 |
-
| PCA reconstruction | 0.
|
| 318 |
-
| Isolation Forest | **0.
|
| 319 |
-
| One-Class SVM | 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
higher than ordinary healthy FPR for three models.
|
| 324 |
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
|
|
|
|
|
|
| 328 |
|
| 329 |
## Repository contents
|
| 330 |
|
| 331 |
```text
|
| 332 |
DRMHB/
|
| 333 |
|- data/DRMHB-compact.vibframe.zip current longitudinal signal dataset
|
| 334 |
-
|- data/DRMHB-compact-controls.vibframe.zip separate
|
| 335 |
-
|- derived/ local H5ADs (not versioned)
|
| 336 |
|- examples/ import, inspect, features, retrofit, evaluation readers
|
| 337 |
-
|- notebooks/DRMHB_EDA.ipynb
|
| 338 |
-
|- notebooks/reference/ immutable executed source of published EDA results
|
| 339 |
|- latexdocs/DRMHB.tex editable report source
|
| 340 |
-
|-
|
| 341 |
-
|-
|
| 342 |
-
|- docs/
|
| 343 |
-
|-
|
| 344 |
-
`-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 345 |
```
|
| 346 |
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
`
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
partial execution cannot silently replace published figures.
|
| 357 |
|
| 358 |
## Limitations
|
| 359 |
|
|
|
|
| 36 |
All measurements are synthetic. DRMHB is not field data and is not a substitute
|
| 37 |
for validation on real machinery.
|
| 38 |
|
| 39 |
+
The ZIPs under `data/` are the **2.6.0 compact campaign** and its separate
|
| 40 |
+
512 paired controls. The conversion examples use
|
| 41 |
[`vibframe-anndata==0.3.0`](https://413hq.github.io/vibframe-anndata-docs/0.3.0/)
|
| 42 |
+
with complete evaluation preservation. The complete EDA, all report figures and
|
| 43 |
+
baseline tables were rerun on the current campaign and checked on 1 October 2026.
|
| 44 |
+
Measured identities and checks are in [the dataset audit](docs/provenance/current_dataset.json).
|
| 45 |
|
| 46 |
**Start here:** [dataset report](docs/DRMHB.pdf), [conversion examples](examples/README.md)
|
| 47 |
and [complete ground-truth guide](docs/GROUND_TRUTH.md).
|
|
|
|
| 97 |
|
| 98 |
| Split | Rows | Intended use |
|
| 99 |
|---|---:|---|
|
| 100 |
+
| `calibration` | 8,179 | Learn healthy normality |
|
| 101 |
+
| `normal_holdout` | 3,723 | Calibrate thresholds and false-positive behaviour |
|
| 102 |
+
| `future_stream` | 35,005 | Causal evaluation with faults, transitions and OOD |
|
| 103 |
|
| 104 |
Acquisition is deliberately non-uniform:
|
| 105 |
|
| 106 |
| Context | Policy | Realized rows |
|
| 107 |
|---|---|---:|
|
| 108 |
+
| Startup transition | Reference: every 5 minutes | 8,729 |
|
| 109 |
+
| Shutdown transition | Reference: every 5 minutes | 8,784 |
|
| 110 |
+
| Internal regime transition | Reference: every 10-15 minutes | 14,562 |
|
| 111 |
+
| Stable running | Reference: every 2-4 hours, plus reallocated captures | 11,424 |
|
| 112 |
| OFF | Every 8 hours | 3,408 |
|
| 113 |
|
| 114 |
+
The compact profile reallocates 8,000 reference transition observations to steady
|
| 115 |
+
operation while protecting endpoints, central progress and fast motor edges.
|
| 116 |
+
There are 32,075 transition observations. Realized steady spacing has a median
|
| 117 |
+
of 55 minutes; reference cadences are not strict spacing rules after reallocation. Observation count is therefore not proportional to elapsed time.
|
| 118 |
Temporal plots and persistence metrics must use timestamps rather than row index.
|
| 119 |
|
| 120 |
## Signal acquisition and storage
|
|
|
|
| 126 |
- `VEL_1K`: velocity spectrum from 0 to 1,000 Hz;
|
| 127 |
- `ACC_10K`: acceleration spectrum from 0 to 10,000 Hz.
|
| 128 |
|
| 129 |
+
`VEL_1K` stores native peak lines at 0.625 Hz spacing. `ACC_10K` stores the
|
| 130 |
+
root-sum-square of native peak lines in 6.25 Hz bands, rather than a maximum line
|
| 131 |
+
amplitude. Under its periodic-Hann convention, RMS is `sqrt(sum(data**2)/3)`;
|
| 132 |
+
apply the correction once. Each spectrum has 1,601 bins. With three directions and two processing modes,
|
| 133 |
the dataset contains 281,442 spectral signals.
|
| 134 |
|
| 135 |
The persisted waveform branch is anti-alias filtered and decimated to 25.6 kHz.
|
|
|
|
| 138 |
| Stored window | Samples/channel | Role |
|
| 139 |
|---|---:|---|
|
| 140 |
| 0.25 s | 6,400 | Ordinary OFF observation |
|
| 141 |
+
| 0.40 s | 10,240 | Ordinary active or transition observation |
|
| 142 |
+
| 0.75 s | 19,200 | Localized event |
|
| 143 |
+
| 1.60 s | 40,960 | Stratified anchor |
|
| 144 |
|
| 145 |
+
The current fixture contains 3,240 short OFF windows, 41,125 ordinary windows,
|
| 146 |
+
198 event windows and 2,344 full-length anchors. Each observation has H/V/A
|
| 147 |
+
waveforms, giving 140,721 waveform signals and 1,625,003,520 persisted samples.
|
| 148 |
+
The separate paired controls use 0.50 s / 12,800-sample windows.
|
| 149 |
|
| 150 |
Waveforms are quantized to an int16-equivalent grid and reconstructed as
|
| 151 |
physical-unit float32 values to remain compatible with VibFrame 0.2.
|
|
|
|
| 155 |
Healthy active observations may contain low-probability disturbances such as
|
| 156 |
RPM drift, load transients, electrical interference, sensor-noise bursts and
|
| 157 |
transient impacts. The current fixture contains 1,756 such rows. Three healthy
|
| 158 |
+
machines each receive eight operational-OOD episodes, totaling 24 episodes and
|
| 159 |
+
1,057 observations. The report lists every configured UTC interval, RPM and valve command.
|
| 160 |
|
| 161 |
Fault distribution:
|
| 162 |
|
|
|
|
| 203 |
row order. Per-waveform joins also identify the raw channel. Capture `t` can be
|
| 204 |
later than `snap_t` because of cropping; it is not a different snapshot.
|
| 205 |
|
| 206 |
+
The current original snapshot-truth tables have 49 columns; the aligned view
|
| 207 |
+
also contains conversion identity fields. Code must inspect actual fields
|
| 208 |
instead of hard-coding a fixed schema. Do not use `split`, `fault_*`, severity,
|
| 209 |
physical states, `ood_operational`, nuisance labels or DiagGT as unsupervised
|
| 210 |
model inputs. Operational-state knowledge must be an explicitly declared
|
|
|
|
| 238 |
|
| 239 |
Example 01 explicitly enables `ground_truth.scope="all"`, stores numerical
|
| 240 |
values as `float32`, and ingests in raw-data blocks of 8 MiB. The featureless base
|
| 241 |
+
has `X.shape == (46907, 0)` for the current longitudinal ZIP. The feature requests materialized 468 machine/source-scoped columns in the current
|
|
|
|
| 242 |
EDA, with structural missing values for other machines. They are not 468 dense
|
| 243 |
fleet-wide descriptors; the notebook explains the logical-column alignment.
|
| 244 |
|
|
|
|
| 265 |
|
| 266 |
### Storage and memory
|
| 267 |
|
| 268 |
+
The longitudinal ZIP is **7,635,324,956 bytes (7.111 GiB)**. The measured
|
| 269 |
+
0.3.0 featureless H5AD is **8,771,810,437 bytes (8.169 GiB)** and the feature H5AD
|
| 270 |
+
is **8,874,970,373 bytes (8.265 GiB)**. Both retain 97 original annotation files,
|
| 271 |
+
totaling 26,874,052 bytes. The audit verifies all original annotation bytes
|
| 272 |
+
against the ZIP, snapshot identities, waveform lengths and identical raw buffers
|
| 273 |
+
in both H5ADs. These sizes include full annotations and capture-time matrices.
|
| 274 |
|
| 275 |
The default 512 MiB sidecar budget covers original encoded annotation files,
|
| 276 |
not decoded tables or total process RAM. Inspect exact archived sizes with
|
|
|
|
| 314 |
|
| 315 |
## Compact reference baseline
|
| 316 |
|
| 317 |
+
The values below come from the complete current 2.6.0 EDA using converter 0.3.0.
|
| 318 |
+
Four deliberately small unsupervised baselines use 39 logical features, fitted
|
| 319 |
+
on calibration only. Thresholds are the 99th percentile of normal-holdout scores.
|
|
|
|
|
|
|
|
|
|
| 320 |
|
| 321 |
| Model | AUROC | AUPRC | F1 | Healthy FPR | Transition FPR | OOD FPR | Median delay |
|
| 322 |
|---|---:|---:|---:|---:|---:|---:|---:|
|
| 323 |
+
| Robust distance | 0.741 | 0.771 | 0.237 | 0.616% | 0.668% | **0.000%** | 38.44 d |
|
| 324 |
+
| PCA reconstruction | 0.735 | 0.768 | 0.329 | 1.017% | 1.142% | 3.784% | **13.48 d** |
|
| 325 |
+
| Isolation Forest | **0.815** | **0.843** | 0.485 | 1.371% | 1.675% | 5.866% | 53.25 d |
|
| 326 |
+
| One-Class SVM | 0.687 | 0.774 | **0.508** | 0.842% | 1.049% | 2.744% | 36.51 d |
|
| 327 |
+
|
| 328 |
+
These are sanity checks, not leaderboard targets. Median delay excludes
|
| 329 |
+
undetected machines: robust distance detects 2/9 faulty machines, PCA 3/9,
|
| 330 |
+
and Isolation Forest and One-Class SVM each 5/9. Report coverage with delay.
|
| 331 |
+
OOD false positives exceed ordinary healthy FPR for three models.
|
| 332 |
|
| 333 |
+
Healthy calibration requires 6, 9 and 13 PCA components for 80%, 90% and 95%
|
| 334 |
+
cumulative variance, respectively. The TwoNN intrinsic-dimension estimate is 9.17.
|
|
|
|
| 335 |
|
| 336 |
+
The 512 paired controls contain 256 damage interventions and 256 healthy
|
| 337 |
+
operating-state interventions (1,024 snapshots). Their timestamps are variant
|
| 338 |
+
identifiers, not a degradation trajectory. `fault_present` and
|
| 339 |
+
`diagnostic_eligible` (RPM >= 120) are separate truth fields; eligibility does
|
| 340 |
+
not guarantee detectability. No RUL or failure-time target is defined.
|
| 341 |
|
| 342 |
## Repository contents
|
| 343 |
|
| 344 |
```text
|
| 345 |
DRMHB/
|
| 346 |
|- data/DRMHB-compact.vibframe.zip current longitudinal signal dataset
|
| 347 |
+
|- data/DRMHB-compact-controls.vibframe.zip separate 512-pair controls
|
| 348 |
+
|- derived/ local H5ADs and EDA exports (not versioned)
|
| 349 |
|- examples/ import, inspect, features, retrofit, evaluation readers
|
| 350 |
+
|- notebooks/DRMHB_EDA.ipynb complete executed 0.3.0 EDA on the 2.6.0 campaign
|
|
|
|
| 351 |
|- latexdocs/DRMHB.tex editable report source
|
| 352 |
+
|- latexdocs/figures/ promoted EDA images and editable TikZ diagrams
|
| 353 |
+
|- latexdocs/provenance/ figure/table and report input identities
|
| 354 |
+
|- docs/DRMHB.pdf compiled current dataset report
|
| 355 |
+
|- docs/provenance/ measured current dataset audit
|
| 356 |
+
`- tools/ audit and report build
|
| 357 |
+
```
|
| 358 |
+
|
| 359 |
+
The [report](docs/DRMHB.pdf) explains the installation, schedules, acquisitions,
|
| 360 |
+
degradation, paired controls, evaluation and complete AnnData workflow.
|
| 361 |
+
The 37 figures and two baseline tables come from the complete current notebook
|
| 362 |
+
execution; their [manifest](latexdocs/provenance/eda_assets.json) records hashes
|
| 363 |
+
and notebook identity. The TikZ week was verified against the current full-horizon
|
| 364 |
+
process recipe.
|
| 365 |
+
|
| 366 |
+
Run the audit with the notebook's Python environment:
|
| 367 |
+
|
| 368 |
+
```bash
|
| 369 |
+
python tools/audit_dataset.py --deep
|
| 370 |
+
python tools/build_report.py --refresh-assets
|
| 371 |
```
|
| 372 |
|
| 373 |
+
`--deep` checks every raw numerical buffer in the base and feature H5ADs.
|
| 374 |
+
The build requires a complete sequential notebook execution and promotes all
|
| 375 |
+
report figures/tables together. Rebuild without promotion using
|
| 376 |
+
`python tools/build_report.py`; a LaTeX distribution with `latexmk` and TikZ is
|
| 377 |
+
required because the report has multiple input files and image assets.
|
| 378 |
+
|
| 379 |
+
The source VibFrame validation reports have `ok=true`, `strict_ok=false`:
|
| 380 |
+
the warning concerns the open node type `CentrifugalPump`. The consistency audit
|
| 381 |
+
does not re-synthesise signals or independently validate the physical model.
|
|
|
|
| 382 |
|
| 383 |
## Limitations
|
| 384 |
|
docs/DRMHB.pdf
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2884161a3b8ec3091794fb2946b53db4f825627b52a73ed0fa1f6ad50ebb7c99
|
| 3 |
+
size 7657654
|
docs/GROUND_TRUTH.md
CHANGED
|
@@ -110,8 +110,14 @@ truth still provides offsets/durations for audit.
|
|
| 110 |
The H5AD grows by original sidecar bytes, aligned labels, the manifest and timing
|
| 111 |
companions. `list_evaluation_files()` reports exact original sizes. The 512 MiB
|
| 112 |
budget refers to encoded sidecars, not total RAM. No raw compression is changed.
|
| 113 |
-
The current longitudinal ZIP is 7,635,324,956 bytes
|
| 114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
|
| 116 |
Authoritative API and full coverage rules:
|
| 117 |
https://413hq.github.io/vibframe-anndata-docs/0.3.0/guides/ground-truth/
|
|
|
|
| 110 |
The H5AD grows by original sidecar bytes, aligned labels, the manifest and timing
|
| 111 |
companions. `list_evaluation_files()` reports exact original sizes. The 512 MiB
|
| 112 |
budget refers to encoded sidecars, not total RAM. No raw compression is changed.
|
| 113 |
+
The current longitudinal ZIP is 7,635,324,956 bytes. Measured complete H5ADs are
|
| 114 |
+
8,771,810,437 bytes (base) and 8,874,970,373 bytes (features), preserving 97
|
| 115 |
+
original files totaling 26,874,052 bytes. The [current audit](provenance/current_dataset.json)
|
| 116 |
+
verifies their source annotation bytes, identities and waveform lengths, plus
|
| 117 |
+
complete raw-buffer equality between base and feature files. The current original
|
| 118 |
+
snapshot-truth schema has 49 columns. Campaign windows are 0.25/0.4/0.75/1.6 s;
|
| 119 |
+
paired controls use 0.5 s. `fault_present` and `diagnostic_eligible` are distinct;
|
| 120 |
+
no RUL or failure-time label is defined.
|
| 121 |
|
| 122 |
Authoritative API and full coverage rules:
|
| 123 |
https://413hq.github.io/vibframe-anndata-docs/0.3.0/guides/ground-truth/
|
docs/provenance/current_dataset.json
ADDED
|
@@ -0,0 +1,564 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checked_at_utc": "2026-10-01T06:55:18.716273+00:00",
|
| 3 |
+
"archives": [
|
| 4 |
+
{
|
| 5 |
+
"path": "data/DRMHB-compact.vibframe.zip",
|
| 6 |
+
"size_bytes": 7635324956,
|
| 7 |
+
"sha256": "58d3fd1042cfac189ba9a464954fbcf3e6f990b75327ddaf1986d13e7583eb1b",
|
| 8 |
+
"generator_version": "2.6.0",
|
| 9 |
+
"dataset_role": "campaign",
|
| 10 |
+
"run_fingerprint": "52077ee4d777e4636ebcb334dc5550c09bdb0aae71129ae9d5caf226484f1e13",
|
| 11 |
+
"snapshots": 46907,
|
| 12 |
+
"snapshot_truth_columns": 49,
|
| 13 |
+
"spectral_signals": 281442,
|
| 14 |
+
"spectral_samples": 450588642,
|
| 15 |
+
"waveform_signals": 140721,
|
| 16 |
+
"waveform_samples": 1625003520,
|
| 17 |
+
"splits": {
|
| 18 |
+
"future_stream": 35005,
|
| 19 |
+
"calibration": 8179,
|
| 20 |
+
"normal_holdout": 3723
|
| 21 |
+
},
|
| 22 |
+
"acquisition_counts": {
|
| 23 |
+
"regime_transition": 14562,
|
| 24 |
+
"steady": 11424,
|
| 25 |
+
"shutdown_transition": 8784,
|
| 26 |
+
"startup_transition": 8729,
|
| 27 |
+
"off": 3408
|
| 28 |
+
},
|
| 29 |
+
"nuisance_snapshots": 1756,
|
| 30 |
+
"ood_snapshots": 1057,
|
| 31 |
+
"waveform_windows": {
|
| 32 |
+
"0.25": 3240,
|
| 33 |
+
"0.4000000059604645": 41125,
|
| 34 |
+
"0.75": 198,
|
| 35 |
+
"1.600000023841858": 2344
|
| 36 |
+
},
|
| 37 |
+
"storage_roles": {
|
| 38 |
+
"temporal_window": 41125,
|
| 39 |
+
"stationary_off_window": 3240,
|
| 40 |
+
"full_stratified_anchor": 2344,
|
| 41 |
+
"localized_event_window": 198
|
| 42 |
+
},
|
| 43 |
+
"stored_waveform_policy": {
|
| 44 |
+
"active_seconds": 0.4,
|
| 45 |
+
"off_seconds": 0.25,
|
| 46 |
+
"event_seconds": 0.75,
|
| 47 |
+
"anchor_seconds": 1.6,
|
| 48 |
+
"anchor_fraction": 0.05,
|
| 49 |
+
"control_seconds": 0.5,
|
| 50 |
+
"dtype": "list<float32>",
|
| 51 |
+
"quantization": "per-row int16 grid reconstructed to physical-g float32"
|
| 52 |
+
},
|
| 53 |
+
"ood_episodes": {
|
| 54 |
+
"M01": [],
|
| 55 |
+
"M02": [
|
| 56 |
+
{
|
| 57 |
+
"id": "M02-OOD-01",
|
| 58 |
+
"start": "2026-03-04 08:00:00+00:00",
|
| 59 |
+
"end": "2026-03-05 22:30:00+00:00",
|
| 60 |
+
"rpm": 1800.0,
|
| 61 |
+
"valve": 0.35
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"id": "M02-OOD-02",
|
| 65 |
+
"start": "2026-03-17 08:00:00+00:00",
|
| 66 |
+
"end": "2026-03-18 22:30:00+00:00",
|
| 67 |
+
"rpm": 1100.0,
|
| 68 |
+
"valve": 0.92
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"id": "M02-OOD-03",
|
| 72 |
+
"start": "2026-04-01 08:00:00+00:00",
|
| 73 |
+
"end": "2026-04-02 22:30:00+00:00",
|
| 74 |
+
"rpm": 1580.0,
|
| 75 |
+
"valve": 0.25
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"id": "M02-OOD-04",
|
| 79 |
+
"start": "2026-04-16 08:00:00+00:00",
|
| 80 |
+
"end": "2026-04-17 18:00:00+00:00",
|
| 81 |
+
"rpm": 1850.0,
|
| 82 |
+
"valve": 0.68
|
| 83 |
+
},
|
| 84 |
+
{
|
| 85 |
+
"id": "M02-OOD-05",
|
| 86 |
+
"start": "2026-05-04 08:00:00+00:00",
|
| 87 |
+
"end": "2026-05-05 22:30:00+00:00",
|
| 88 |
+
"rpm": 950.0,
|
| 89 |
+
"valve": 0.9
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"id": "M02-OOD-06",
|
| 93 |
+
"start": "2026-05-18 08:00:00+00:00",
|
| 94 |
+
"end": "2026-05-19 22:30:00+00:00",
|
| 95 |
+
"rpm": 1650.0,
|
| 96 |
+
"valve": 0.3
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"id": "M02-OOD-07",
|
| 100 |
+
"start": "2026-06-01 08:00:00+00:00",
|
| 101 |
+
"end": "2026-06-02 22:30:00+00:00",
|
| 102 |
+
"rpm": 1200.0,
|
| 103 |
+
"valve": 0.98
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"id": "M02-OOD-08",
|
| 107 |
+
"start": "2026-06-16 08:00:00+00:00",
|
| 108 |
+
"end": "2026-06-17 22:30:00+00:00",
|
| 109 |
+
"rpm": 1780.0,
|
| 110 |
+
"valve": 0.48
|
| 111 |
+
}
|
| 112 |
+
],
|
| 113 |
+
"M03": [],
|
| 114 |
+
"M04": [],
|
| 115 |
+
"M05": [],
|
| 116 |
+
"M06": [],
|
| 117 |
+
"M07": [
|
| 118 |
+
{
|
| 119 |
+
"id": "M07-OOD-01",
|
| 120 |
+
"start": "2026-03-05 08:00:00+00:00",
|
| 121 |
+
"end": "2026-03-06 18:00:00+00:00",
|
| 122 |
+
"rpm": 1100.0,
|
| 123 |
+
"valve": 0.92
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"id": "M07-OOD-02",
|
| 127 |
+
"start": "2026-03-18 08:00:00+00:00",
|
| 128 |
+
"end": "2026-03-19 22:30:00+00:00",
|
| 129 |
+
"rpm": 1580.0,
|
| 130 |
+
"valve": 0.25
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"id": "M07-OOD-03",
|
| 134 |
+
"start": "2026-04-02 08:00:00+00:00",
|
| 135 |
+
"end": "2026-04-03 18:00:00+00:00",
|
| 136 |
+
"rpm": 1850.0,
|
| 137 |
+
"valve": 0.68
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"id": "M07-OOD-04",
|
| 141 |
+
"start": "2026-04-20 08:00:00+00:00",
|
| 142 |
+
"end": "2026-04-21 22:30:00+00:00",
|
| 143 |
+
"rpm": 950.0,
|
| 144 |
+
"valve": 0.9
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"id": "M07-OOD-05",
|
| 148 |
+
"start": "2026-05-04 08:00:00+00:00",
|
| 149 |
+
"end": "2026-05-05 22:30:00+00:00",
|
| 150 |
+
"rpm": 1650.0,
|
| 151 |
+
"valve": 0.3
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"id": "M07-OOD-06",
|
| 155 |
+
"start": "2026-05-18 08:00:00+00:00",
|
| 156 |
+
"end": "2026-05-19 22:30:00+00:00",
|
| 157 |
+
"rpm": 1200.0,
|
| 158 |
+
"valve": 0.98
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"id": "M07-OOD-07",
|
| 162 |
+
"start": "2026-06-01 08:00:00+00:00",
|
| 163 |
+
"end": "2026-06-02 22:30:00+00:00",
|
| 164 |
+
"rpm": 1780.0,
|
| 165 |
+
"valve": 0.48
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"id": "M07-OOD-08",
|
| 169 |
+
"start": "2026-06-17 08:00:00+00:00",
|
| 170 |
+
"end": "2026-06-18 22:30:00+00:00",
|
| 171 |
+
"rpm": 1800.0,
|
| 172 |
+
"valve": 0.35
|
| 173 |
+
}
|
| 174 |
+
],
|
| 175 |
+
"M08": [],
|
| 176 |
+
"M09": [],
|
| 177 |
+
"M10": [],
|
| 178 |
+
"M11": [
|
| 179 |
+
{
|
| 180 |
+
"id": "M11-OOD-01",
|
| 181 |
+
"start": "2026-03-09 08:00:00+00:00",
|
| 182 |
+
"end": "2026-03-10 22:30:00+00:00",
|
| 183 |
+
"rpm": 1580.0,
|
| 184 |
+
"valve": 0.25
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"id": "M11-OOD-02",
|
| 188 |
+
"start": "2026-03-19 08:00:00+00:00",
|
| 189 |
+
"end": "2026-03-20 18:00:00+00:00",
|
| 190 |
+
"rpm": 1850.0,
|
| 191 |
+
"valve": 0.68
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"id": "M11-OOD-03",
|
| 195 |
+
"start": "2026-04-06 08:00:00+00:00",
|
| 196 |
+
"end": "2026-04-07 22:30:00+00:00",
|
| 197 |
+
"rpm": 950.0,
|
| 198 |
+
"valve": 0.9
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"id": "M11-OOD-04",
|
| 202 |
+
"start": "2026-04-20 08:00:00+00:00",
|
| 203 |
+
"end": "2026-04-21 22:30:00+00:00",
|
| 204 |
+
"rpm": 1650.0,
|
| 205 |
+
"valve": 0.3
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"id": "M11-OOD-05",
|
| 209 |
+
"start": "2026-05-04 08:00:00+00:00",
|
| 210 |
+
"end": "2026-05-05 22:30:00+00:00",
|
| 211 |
+
"rpm": 1200.0,
|
| 212 |
+
"valve": 0.98
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"id": "M11-OOD-06",
|
| 216 |
+
"start": "2026-05-18 08:00:00+00:00",
|
| 217 |
+
"end": "2026-05-19 22:30:00+00:00",
|
| 218 |
+
"rpm": 1780.0,
|
| 219 |
+
"valve": 0.48
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"id": "M11-OOD-07",
|
| 223 |
+
"start": "2026-06-02 08:00:00+00:00",
|
| 224 |
+
"end": "2026-06-03 22:30:00+00:00",
|
| 225 |
+
"rpm": 1800.0,
|
| 226 |
+
"valve": 0.35
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"id": "M11-OOD-08",
|
| 230 |
+
"start": "2026-06-18 08:00:00+00:00",
|
| 231 |
+
"end": "2026-06-19 18:00:00+00:00",
|
| 232 |
+
"rpm": 1100.0,
|
| 233 |
+
"valve": 0.92
|
| 234 |
+
}
|
| 235 |
+
],
|
| 236 |
+
"M12": []
|
| 237 |
+
},
|
| 238 |
+
"validation_ok": true,
|
| 239 |
+
"strict_validation_ok": false,
|
| 240 |
+
"validation_warnings": [
|
| 241 |
+
"definition.undocumented-node-type"
|
| 242 |
+
]
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"path": "data/DRMHB-compact-controls.vibframe.zip",
|
| 246 |
+
"size_bytes": 185975818,
|
| 247 |
+
"sha256": "b193177effafaf17089f753e57cd94b5ad969873d7cedfdceaab81171fdee128",
|
| 248 |
+
"generator_version": "2.6.0",
|
| 249 |
+
"dataset_role": "controls",
|
| 250 |
+
"run_fingerprint": "27931f2e6d0a1d8ad6b7b83c8e2d7af7df2dbf62848fdf6bb07553322e904cf4",
|
| 251 |
+
"snapshots": 1024,
|
| 252 |
+
"snapshot_truth_columns": 49,
|
| 253 |
+
"spectral_signals": 6144,
|
| 254 |
+
"spectral_samples": 9836544,
|
| 255 |
+
"waveform_signals": 3072,
|
| 256 |
+
"waveform_samples": 39321600,
|
| 257 |
+
"splits": {
|
| 258 |
+
"controlled_pairs": 1024
|
| 259 |
+
},
|
| 260 |
+
"acquisition_counts": {
|
| 261 |
+
"controlled_pair": 1024
|
| 262 |
+
},
|
| 263 |
+
"nuisance_snapshots": 0,
|
| 264 |
+
"ood_snapshots": 0,
|
| 265 |
+
"waveform_windows": {
|
| 266 |
+
"0.5": 1024
|
| 267 |
+
},
|
| 268 |
+
"storage_roles": {
|
| 269 |
+
"paired_control_window": 1024
|
| 270 |
+
},
|
| 271 |
+
"stored_waveform_policy": {
|
| 272 |
+
"active_seconds": 0.4,
|
| 273 |
+
"off_seconds": 0.25,
|
| 274 |
+
"event_seconds": 0.75,
|
| 275 |
+
"anchor_seconds": 1.6,
|
| 276 |
+
"anchor_fraction": 0.05,
|
| 277 |
+
"control_seconds": 0.5,
|
| 278 |
+
"dtype": "list<float32>",
|
| 279 |
+
"quantization": "per-row int16 grid reconstructed to physical-g float32"
|
| 280 |
+
},
|
| 281 |
+
"ood_episodes": {
|
| 282 |
+
"M01": [],
|
| 283 |
+
"M02": [
|
| 284 |
+
{
|
| 285 |
+
"id": "M02-OOD-01",
|
| 286 |
+
"start": "2026-03-04 08:00:00+00:00",
|
| 287 |
+
"end": "2026-03-05 22:30:00+00:00",
|
| 288 |
+
"rpm": 1800.0,
|
| 289 |
+
"valve": 0.35
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"id": "M02-OOD-02",
|
| 293 |
+
"start": "2026-03-17 08:00:00+00:00",
|
| 294 |
+
"end": "2026-03-18 22:30:00+00:00",
|
| 295 |
+
"rpm": 1100.0,
|
| 296 |
+
"valve": 0.92
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"id": "M02-OOD-03",
|
| 300 |
+
"start": "2026-04-01 08:00:00+00:00",
|
| 301 |
+
"end": "2026-04-02 22:30:00+00:00",
|
| 302 |
+
"rpm": 1580.0,
|
| 303 |
+
"valve": 0.25
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"id": "M02-OOD-04",
|
| 307 |
+
"start": "2026-04-16 08:00:00+00:00",
|
| 308 |
+
"end": "2026-04-17 18:00:00+00:00",
|
| 309 |
+
"rpm": 1850.0,
|
| 310 |
+
"valve": 0.68
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"id": "M02-OOD-05",
|
| 314 |
+
"start": "2026-05-04 08:00:00+00:00",
|
| 315 |
+
"end": "2026-05-05 22:30:00+00:00",
|
| 316 |
+
"rpm": 950.0,
|
| 317 |
+
"valve": 0.9
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"id": "M02-OOD-06",
|
| 321 |
+
"start": "2026-05-18 08:00:00+00:00",
|
| 322 |
+
"end": "2026-05-19 22:30:00+00:00",
|
| 323 |
+
"rpm": 1650.0,
|
| 324 |
+
"valve": 0.3
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"id": "M02-OOD-07",
|
| 328 |
+
"start": "2026-06-01 08:00:00+00:00",
|
| 329 |
+
"end": "2026-06-02 22:30:00+00:00",
|
| 330 |
+
"rpm": 1200.0,
|
| 331 |
+
"valve": 0.98
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"id": "M02-OOD-08",
|
| 335 |
+
"start": "2026-06-16 08:00:00+00:00",
|
| 336 |
+
"end": "2026-06-17 22:30:00+00:00",
|
| 337 |
+
"rpm": 1780.0,
|
| 338 |
+
"valve": 0.48
|
| 339 |
+
}
|
| 340 |
+
],
|
| 341 |
+
"M03": [],
|
| 342 |
+
"M04": [],
|
| 343 |
+
"M05": [],
|
| 344 |
+
"M06": [],
|
| 345 |
+
"M07": [
|
| 346 |
+
{
|
| 347 |
+
"id": "M07-OOD-01",
|
| 348 |
+
"start": "2026-03-05 08:00:00+00:00",
|
| 349 |
+
"end": "2026-03-06 18:00:00+00:00",
|
| 350 |
+
"rpm": 1100.0,
|
| 351 |
+
"valve": 0.92
|
| 352 |
+
},
|
| 353 |
+
{
|
| 354 |
+
"id": "M07-OOD-02",
|
| 355 |
+
"start": "2026-03-18 08:00:00+00:00",
|
| 356 |
+
"end": "2026-03-19 22:30:00+00:00",
|
| 357 |
+
"rpm": 1580.0,
|
| 358 |
+
"valve": 0.25
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"id": "M07-OOD-03",
|
| 362 |
+
"start": "2026-04-02 08:00:00+00:00",
|
| 363 |
+
"end": "2026-04-03 18:00:00+00:00",
|
| 364 |
+
"rpm": 1850.0,
|
| 365 |
+
"valve": 0.68
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"id": "M07-OOD-04",
|
| 369 |
+
"start": "2026-04-20 08:00:00+00:00",
|
| 370 |
+
"end": "2026-04-21 22:30:00+00:00",
|
| 371 |
+
"rpm": 950.0,
|
| 372 |
+
"valve": 0.9
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"id": "M07-OOD-05",
|
| 376 |
+
"start": "2026-05-04 08:00:00+00:00",
|
| 377 |
+
"end": "2026-05-05 22:30:00+00:00",
|
| 378 |
+
"rpm": 1650.0,
|
| 379 |
+
"valve": 0.3
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"id": "M07-OOD-06",
|
| 383 |
+
"start": "2026-05-18 08:00:00+00:00",
|
| 384 |
+
"end": "2026-05-19 22:30:00+00:00",
|
| 385 |
+
"rpm": 1200.0,
|
| 386 |
+
"valve": 0.98
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"id": "M07-OOD-07",
|
| 390 |
+
"start": "2026-06-01 08:00:00+00:00",
|
| 391 |
+
"end": "2026-06-02 22:30:00+00:00",
|
| 392 |
+
"rpm": 1780.0,
|
| 393 |
+
"valve": 0.48
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"id": "M07-OOD-08",
|
| 397 |
+
"start": "2026-06-17 08:00:00+00:00",
|
| 398 |
+
"end": "2026-06-18 22:30:00+00:00",
|
| 399 |
+
"rpm": 1800.0,
|
| 400 |
+
"valve": 0.35
|
| 401 |
+
}
|
| 402 |
+
],
|
| 403 |
+
"M08": [],
|
| 404 |
+
"M09": [],
|
| 405 |
+
"M10": [],
|
| 406 |
+
"M11": [
|
| 407 |
+
{
|
| 408 |
+
"id": "M11-OOD-01",
|
| 409 |
+
"start": "2026-03-09 08:00:00+00:00",
|
| 410 |
+
"end": "2026-03-10 22:30:00+00:00",
|
| 411 |
+
"rpm": 1580.0,
|
| 412 |
+
"valve": 0.25
|
| 413 |
+
},
|
| 414 |
+
{
|
| 415 |
+
"id": "M11-OOD-02",
|
| 416 |
+
"start": "2026-03-19 08:00:00+00:00",
|
| 417 |
+
"end": "2026-03-20 18:00:00+00:00",
|
| 418 |
+
"rpm": 1850.0,
|
| 419 |
+
"valve": 0.68
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"id": "M11-OOD-03",
|
| 423 |
+
"start": "2026-04-06 08:00:00+00:00",
|
| 424 |
+
"end": "2026-04-07 22:30:00+00:00",
|
| 425 |
+
"rpm": 950.0,
|
| 426 |
+
"valve": 0.9
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"id": "M11-OOD-04",
|
| 430 |
+
"start": "2026-04-20 08:00:00+00:00",
|
| 431 |
+
"end": "2026-04-21 22:30:00+00:00",
|
| 432 |
+
"rpm": 1650.0,
|
| 433 |
+
"valve": 0.3
|
| 434 |
+
},
|
| 435 |
+
{
|
| 436 |
+
"id": "M11-OOD-05",
|
| 437 |
+
"start": "2026-05-04 08:00:00+00:00",
|
| 438 |
+
"end": "2026-05-05 22:30:00+00:00",
|
| 439 |
+
"rpm": 1200.0,
|
| 440 |
+
"valve": 0.98
|
| 441 |
+
},
|
| 442 |
+
{
|
| 443 |
+
"id": "M11-OOD-06",
|
| 444 |
+
"start": "2026-05-18 08:00:00+00:00",
|
| 445 |
+
"end": "2026-05-19 22:30:00+00:00",
|
| 446 |
+
"rpm": 1780.0,
|
| 447 |
+
"valve": 0.48
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"id": "M11-OOD-07",
|
| 451 |
+
"start": "2026-06-02 08:00:00+00:00",
|
| 452 |
+
"end": "2026-06-03 22:30:00+00:00",
|
| 453 |
+
"rpm": 1800.0,
|
| 454 |
+
"valve": 0.35
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"id": "M11-OOD-08",
|
| 458 |
+
"start": "2026-06-18 08:00:00+00:00",
|
| 459 |
+
"end": "2026-06-19 18:00:00+00:00",
|
| 460 |
+
"rpm": 1100.0,
|
| 461 |
+
"valve": 0.92
|
| 462 |
+
}
|
| 463 |
+
],
|
| 464 |
+
"M12": []
|
| 465 |
+
},
|
| 466 |
+
"validation_ok": true,
|
| 467 |
+
"strict_validation_ok": false,
|
| 468 |
+
"validation_warnings": [
|
| 469 |
+
"definition.undocumented-node-type"
|
| 470 |
+
],
|
| 471 |
+
"control_pairs": 512,
|
| 472 |
+
"control_families": {
|
| 473 |
+
"damage": 256,
|
| 474 |
+
"operating_state": 256
|
| 475 |
+
}
|
| 476 |
+
}
|
| 477 |
+
],
|
| 478 |
+
"derivatives": [
|
| 479 |
+
{
|
| 480 |
+
"path": "derived/DRMHB-compact.v0.3.0.raw.h5ad",
|
| 481 |
+
"size_bytes": 8771810437,
|
| 482 |
+
"shape": [
|
| 483 |
+
46907,
|
| 484 |
+
0
|
| 485 |
+
],
|
| 486 |
+
"counts": {
|
| 487 |
+
"n_obs": 46907,
|
| 488 |
+
"waveform_signals": 140721,
|
| 489 |
+
"waveform_samples": 1625003520,
|
| 490 |
+
"spectrum_signals": 281442,
|
| 491 |
+
"spectrum_samples": 450588642,
|
| 492 |
+
"ground_truth_rows": 46907,
|
| 493 |
+
"waveform_ground_truth_snapshots": 46907
|
| 494 |
+
},
|
| 495 |
+
"evaluation_files": 97,
|
| 496 |
+
"evaluation_bytes": 26874052,
|
| 497 |
+
"source_sidecar_bytes_verified": true,
|
| 498 |
+
"validation": {
|
| 499 |
+
"path": "/Users/agzapico/Documents/Repos/DRMHB/derived/DRMHB-compact.v0.3.0.raw.h5ad",
|
| 500 |
+
"n_obs": 46907,
|
| 501 |
+
"n_vars": 0,
|
| 502 |
+
"machines": 12,
|
| 503 |
+
"has_waveform": 46907,
|
| 504 |
+
"has_spectrum": 46907,
|
| 505 |
+
"ground_truth_rows": 46907,
|
| 506 |
+
"ground_truth_columns": 51,
|
| 507 |
+
"evaluation_files": 97,
|
| 508 |
+
"evaluation_bytes": 26874052,
|
| 509 |
+
"waveform_ground_truth_snapshots": 46907,
|
| 510 |
+
"waveform_signals": 140721,
|
| 511 |
+
"waveform_samples": 1625003520,
|
| 512 |
+
"waveform_compression": "none",
|
| 513 |
+
"waveform_compression_opts": null,
|
| 514 |
+
"spectrum_signals": 281442,
|
| 515 |
+
"spectrum_samples": 450588642,
|
| 516 |
+
"spectrum_compression": "none",
|
| 517 |
+
"spectrum_compression_opts": null
|
| 518 |
+
}
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"path": "derived/DRMHB-compact.v0.3.0.features.h5ad",
|
| 522 |
+
"size_bytes": 8874970373,
|
| 523 |
+
"shape": [
|
| 524 |
+
46907,
|
| 525 |
+
468
|
| 526 |
+
],
|
| 527 |
+
"counts": {
|
| 528 |
+
"n_obs": 46907,
|
| 529 |
+
"waveform_signals": 140721,
|
| 530 |
+
"waveform_samples": 1625003520,
|
| 531 |
+
"spectrum_signals": 281442,
|
| 532 |
+
"spectrum_samples": 450588642,
|
| 533 |
+
"ground_truth_rows": 46907,
|
| 534 |
+
"waveform_ground_truth_snapshots": 46907
|
| 535 |
+
},
|
| 536 |
+
"evaluation_files": 97,
|
| 537 |
+
"evaluation_bytes": 26874052,
|
| 538 |
+
"source_sidecar_bytes_verified": true,
|
| 539 |
+
"validation": {
|
| 540 |
+
"path": "/Users/agzapico/Documents/Repos/DRMHB/derived/DRMHB-compact.v0.3.0.features.h5ad",
|
| 541 |
+
"n_obs": 46907,
|
| 542 |
+
"n_vars": 468,
|
| 543 |
+
"machines": 12,
|
| 544 |
+
"has_waveform": 46907,
|
| 545 |
+
"has_spectrum": 46907,
|
| 546 |
+
"ground_truth_rows": 46907,
|
| 547 |
+
"ground_truth_columns": 51,
|
| 548 |
+
"evaluation_files": 97,
|
| 549 |
+
"evaluation_bytes": 26874052,
|
| 550 |
+
"waveform_ground_truth_snapshots": 46907,
|
| 551 |
+
"waveform_signals": 140721,
|
| 552 |
+
"waveform_samples": 1625003520,
|
| 553 |
+
"waveform_compression": "none",
|
| 554 |
+
"waveform_compression_opts": null,
|
| 555 |
+
"spectrum_signals": 281442,
|
| 556 |
+
"spectrum_samples": 450588642,
|
| 557 |
+
"spectrum_compression": "none",
|
| 558 |
+
"spectrum_compression_opts": null
|
| 559 |
+
}
|
| 560 |
+
}
|
| 561 |
+
],
|
| 562 |
+
"all_raw_buffers_identical_base_vs_features": true,
|
| 563 |
+
"scope": "ZIP identities, generation/validation reports, all construction sidecars, all archived H5AD annotation bytes, snapshot joins and all waveform lengths; optional complete base/feature raw-buffer comparison. No re-synthesis or independent physical-model validation."
|
| 564 |
+
}
|
examples/README.md
CHANGED
|
@@ -41,7 +41,7 @@ The thirteen feature requests remain the same as in the published EDA:
|
|
| 41 |
velocity/acceleration RMS, subsynchronous/1X/low-harmonic bands, 1X/2X/BPFO/BPFI
|
| 42 |
amplitudes, VPF-family RMS, and waveform RMS/crest factor/kurtosis.
|
| 43 |
|
| 44 |
-
For the
|
| 45 |
Each machine populates its relevant descriptors; structural NaNs are not zeros.
|
| 46 |
The EDA constructs a common logical descriptor matrix without averaging different
|
| 47 |
machines. Preserve `var` units, processing mode, point and algorithm/options
|
|
@@ -103,9 +103,9 @@ current longitudinal ZIP. Use a distinct output basename for their H5AD.
|
|
| 103 |
|
| 104 |
## Resources and verification
|
| 105 |
|
| 106 |
-
No raw compression settings or VibFrame bytes are changed.
|
| 107 |
-
|
| 108 |
-
|
| 109 |
512 MiB encoded-sidecar budget are not process-memory caps.
|
| 110 |
|
| 111 |
For a quick end-to-end check using the smaller controls ZIP:
|
|
|
|
| 41 |
velocity/acceleration RMS, subsynchronous/1X/low-harmonic bands, 1X/2X/BPFO/BPFI
|
| 42 |
amplitudes, VPF-family RMS, and waveform RMS/crest factor/kurtosis.
|
| 43 |
|
| 44 |
+
For the current 2.6.0 fleet they materialized 468 machine/source-scoped columns.
|
| 45 |
Each machine populates its relevant descriptors; structural NaNs are not zeros.
|
| 46 |
The EDA constructs a common logical descriptor matrix without averaging different
|
| 47 |
machines. Preserve `var` units, processing mode, point and algorithm/options
|
|
|
|
| 103 |
|
| 104 |
## Resources and verification
|
| 105 |
|
| 106 |
+
No raw compression settings or VibFrame bytes are changed. The current complete 0.3.0 base and feature H5ADs measure 8.169 and
|
| 107 |
+
8.265 GiB respectively; both retain 97 original files (26,874,052 bytes).
|
| 108 |
+
Verify local derivatives with `python tools/audit_dataset.py --deep`. Metadata decoding also consumes RAM, so the raw block size and
|
| 109 |
512 MiB encoded-sidecar budget are not process-memory caps.
|
| 110 |
|
| 111 |
For a quick end-to-end check using the smaller controls ZIP:
|
notebooks/DRMHB_EDA.ipynb
CHANGED
|
@@ -32,13 +32,12 @@
|
|
| 32 |
"The notebook derives claims from the generated data rather than copying the generator plan. Selected figures are exported as PDF and PNG under `derived/eda_v0.3.0/figures/`, with a manifest describing the question answered by each figure.\n",
|
| 33 |
"### Reproducible use\n",
|
| 34 |
"\n",
|
| 35 |
-
"This
|
| 36 |
-
"
|
| 37 |
-
"
|
| 38 |
-
"
|
| 39 |
-
"
|
| 40 |
-
"`
|
| 41 |
-
"report figures: promote a complete reviewed run, its results and captions together.\n"
|
| 42 |
]
|
| 43 |
},
|
| 44 |
{
|
|
@@ -62,10 +61,24 @@
|
|
| 62 |
},
|
| 63 |
{
|
| 64 |
"cell_type": "code",
|
| 65 |
-
"execution_count":
|
| 66 |
"id": "8341546f",
|
| 67 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
{
|
| 70 |
"name": "stdout",
|
| 71 |
"output_type": "stream",
|
|
@@ -154,19 +167,24 @@
|
|
| 154 |
},
|
| 155 |
{
|
| 156 |
"cell_type": "code",
|
| 157 |
-
"execution_count":
|
| 158 |
"id": "f1ee8d23",
|
| 159 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
"outputs": [
|
| 161 |
{
|
| 162 |
"name": "stdout",
|
| 163 |
"output_type": "stream",
|
| 164 |
"text": [
|
| 165 |
-
"[ingest] Completed in 119.47 s.\n",
|
| 166 |
-
"[features] Completed in 236.46 s.\n",
|
| 167 |
"Base: /Users/agzapico/Documents/Repos/DRMHB/derived/DRMHB-compact.v0.3.0.raw.h5ad (8.169 GiB)\n",
|
| 168 |
"Features: /Users/agzapico/Documents/Repos/DRMHB/derived/DRMHB-compact.v0.3.0.features.h5ad (8.265 GiB)\n",
|
| 169 |
-
"Free disk:
|
| 170 |
]
|
| 171 |
}
|
| 172 |
],
|
|
@@ -279,9 +297,16 @@
|
|
| 279 |
},
|
| 280 |
{
|
| 281 |
"cell_type": "code",
|
| 282 |
-
"execution_count":
|
| 283 |
"id": "ee763b7b",
|
| 284 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 285 |
"outputs": [
|
| 286 |
{
|
| 287 |
"data": {
|
|
@@ -307,7 +332,7 @@
|
|
| 307 |
" 'spectrum_compression_opts': None}"
|
| 308 |
]
|
| 309 |
},
|
| 310 |
-
"execution_count":
|
| 311 |
"metadata": {},
|
| 312 |
"output_type": "execute_result"
|
| 313 |
}
|
|
@@ -332,9 +357,16 @@
|
|
| 332 |
},
|
| 333 |
{
|
| 334 |
"cell_type": "code",
|
| 335 |
-
"execution_count":
|
| 336 |
"id": "9b0d60c6",
|
| 337 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
"outputs": [
|
| 339 |
{
|
| 340 |
"name": "stdout",
|
|
@@ -1674,9 +1706,16 @@
|
|
| 1674 |
},
|
| 1675 |
{
|
| 1676 |
"cell_type": "code",
|
| 1677 |
-
"execution_count":
|
| 1678 |
"id": "5a556ac4",
|
| 1679 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1680 |
"outputs": [
|
| 1681 |
{
|
| 1682 |
"data": {
|
|
@@ -2093,9 +2132,16 @@
|
|
| 2093 |
},
|
| 2094 |
{
|
| 2095 |
"cell_type": "code",
|
| 2096 |
-
"execution_count":
|
| 2097 |
"id": "f24738df",
|
| 2098 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2099 |
"outputs": [
|
| 2100 |
{
|
| 2101 |
"data": {
|
|
@@ -2589,9 +2635,16 @@
|
|
| 2589 |
},
|
| 2590 |
{
|
| 2591 |
"cell_type": "code",
|
| 2592 |
-
"execution_count":
|
| 2593 |
"id": "af98f5df",
|
| 2594 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2595 |
"outputs": [
|
| 2596 |
{
|
| 2597 |
"data": {
|
|
@@ -2647,9 +2700,16 @@
|
|
| 2647 |
},
|
| 2648 |
{
|
| 2649 |
"cell_type": "code",
|
| 2650 |
-
"execution_count":
|
| 2651 |
"id": "b0bdf9ca",
|
| 2652 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2653 |
"outputs": [
|
| 2654 |
{
|
| 2655 |
"data": {
|
|
@@ -2765,9 +2825,16 @@
|
|
| 2765 |
},
|
| 2766 |
{
|
| 2767 |
"cell_type": "code",
|
| 2768 |
-
"execution_count":
|
| 2769 |
"id": "f03201ce",
|
| 2770 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2771 |
"outputs": [
|
| 2772 |
{
|
| 2773 |
"data": {
|
|
@@ -3008,9 +3075,16 @@
|
|
| 3008 |
},
|
| 3009 |
{
|
| 3010 |
"cell_type": "code",
|
| 3011 |
-
"execution_count":
|
| 3012 |
"id": "f3d0dc45",
|
| 3013 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3014 |
"outputs": [
|
| 3015 |
{
|
| 3016 |
"data": {
|
|
@@ -3137,9 +3211,16 @@
|
|
| 3137 |
},
|
| 3138 |
{
|
| 3139 |
"cell_type": "code",
|
| 3140 |
-
"execution_count":
|
| 3141 |
"id": "fea4b819",
|
| 3142 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3143 |
"outputs": [
|
| 3144 |
{
|
| 3145 |
"data": {
|
|
@@ -3230,9 +3311,16 @@
|
|
| 3230 |
},
|
| 3231 |
{
|
| 3232 |
"cell_type": "code",
|
| 3233 |
-
"execution_count":
|
| 3234 |
"id": "93bf7b65",
|
| 3235 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3236 |
"outputs": [
|
| 3237 |
{
|
| 3238 |
"data": {
|
|
@@ -3304,9 +3392,16 @@
|
|
| 3304 |
},
|
| 3305 |
{
|
| 3306 |
"cell_type": "code",
|
| 3307 |
-
"execution_count":
|
| 3308 |
"id": "beb50cfb",
|
| 3309 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3310 |
"outputs": [
|
| 3311 |
{
|
| 3312 |
"name": "stdout",
|
|
@@ -3354,9 +3449,16 @@
|
|
| 3354 |
},
|
| 3355 |
{
|
| 3356 |
"cell_type": "code",
|
| 3357 |
-
"execution_count":
|
| 3358 |
"id": "b95e77b5",
|
| 3359 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3360 |
"outputs": [
|
| 3361 |
{
|
| 3362 |
"name": "stdout",
|
|
@@ -3371,11 +3473,11 @@
|
|
| 3371 |
"name": "stderr",
|
| 3372 |
"output_type": "stream",
|
| 3373 |
"text": [
|
| 3374 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 3375 |
" .gt(pd.Timedelta(minutes=30))\n",
|
| 3376 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 3377 |
" lo = example[\"timestamp\"].min() - pd.Timedelta(hours=1)\n",
|
| 3378 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 3379 |
" hi = example[\"timestamp\"].max() + pd.Timedelta(hours=1)\n"
|
| 3380 |
]
|
| 3381 |
},
|
|
@@ -3504,9 +3606,16 @@
|
|
| 3504 |
},
|
| 3505 |
{
|
| 3506 |
"cell_type": "code",
|
| 3507 |
-
"execution_count":
|
| 3508 |
"id": "f801a856",
|
| 3509 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3510 |
"outputs": [
|
| 3511 |
{
|
| 3512 |
"name": "stdout",
|
|
@@ -3591,9 +3700,16 @@
|
|
| 3591 |
},
|
| 3592 |
{
|
| 3593 |
"cell_type": "code",
|
| 3594 |
-
"execution_count":
|
| 3595 |
"id": "08a1c195",
|
| 3596 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3597 |
"outputs": [
|
| 3598 |
{
|
| 3599 |
"data": {
|
|
@@ -3728,9 +3844,16 @@
|
|
| 3728 |
},
|
| 3729 |
{
|
| 3730 |
"cell_type": "code",
|
| 3731 |
-
"execution_count":
|
| 3732 |
"id": "4c105742",
|
| 3733 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3734 |
"outputs": [],
|
| 3735 |
"source": [
|
| 3736 |
"def find_channel(channels, *, machine, point_id, proc_mode_id):\n",
|
|
@@ -3809,9 +3932,16 @@
|
|
| 3809 |
},
|
| 3810 |
{
|
| 3811 |
"cell_type": "code",
|
| 3812 |
-
"execution_count":
|
| 3813 |
"id": "19688b01",
|
| 3814 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3815 |
"outputs": [
|
| 3816 |
{
|
| 3817 |
"data": {
|
|
@@ -3903,9 +4033,16 @@
|
|
| 3903 |
},
|
| 3904 |
{
|
| 3905 |
"cell_type": "code",
|
| 3906 |
-
"execution_count":
|
| 3907 |
"id": "41604920",
|
| 3908 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3909 |
"outputs": [
|
| 3910 |
{
|
| 3911 |
"data": {
|
|
@@ -4039,9 +4176,16 @@
|
|
| 4039 |
},
|
| 4040 |
{
|
| 4041 |
"cell_type": "code",
|
| 4042 |
-
"execution_count":
|
| 4043 |
"id": "5693c86c",
|
| 4044 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4045 |
"outputs": [
|
| 4046 |
{
|
| 4047 |
"data": {
|
|
@@ -4067,7 +4211,7 @@
|
|
| 4067 |
" 'spectrum_compression_opts': None}"
|
| 4068 |
]
|
| 4069 |
},
|
| 4070 |
-
"execution_count":
|
| 4071 |
"metadata": {},
|
| 4072 |
"output_type": "execute_result"
|
| 4073 |
}
|
|
@@ -4090,9 +4234,16 @@
|
|
| 4090 |
},
|
| 4091 |
{
|
| 4092 |
"cell_type": "code",
|
| 4093 |
-
"execution_count":
|
| 4094 |
"id": "0f0b10a3",
|
| 4095 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4096 |
"outputs": [
|
| 4097 |
{
|
| 4098 |
"name": "stdout",
|
|
@@ -4728,9 +4879,16 @@
|
|
| 4728 |
},
|
| 4729 |
{
|
| 4730 |
"cell_type": "code",
|
| 4731 |
-
"execution_count":
|
| 4732 |
"id": "06a3d8a0",
|
| 4733 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4734 |
"outputs": [
|
| 4735 |
{
|
| 4736 |
"data": {
|
|
@@ -5034,9 +5192,16 @@
|
|
| 5034 |
},
|
| 5035 |
{
|
| 5036 |
"cell_type": "code",
|
| 5037 |
-
"execution_count":
|
| 5038 |
"id": "713fded0",
|
| 5039 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5040 |
"outputs": [
|
| 5041 |
{
|
| 5042 |
"data": {
|
|
@@ -5072,9 +5237,16 @@
|
|
| 5072 |
},
|
| 5073 |
{
|
| 5074 |
"cell_type": "code",
|
| 5075 |
-
"execution_count":
|
| 5076 |
"id": "ce56a659",
|
| 5077 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5078 |
"outputs": [],
|
| 5079 |
"source": [
|
| 5080 |
"if \"split\" in truth_f:\n",
|
|
@@ -5085,9 +5257,16 @@
|
|
| 5085 |
},
|
| 5086 |
{
|
| 5087 |
"cell_type": "code",
|
| 5088 |
-
"execution_count":
|
| 5089 |
"id": "2f5498f8",
|
| 5090 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5091 |
"outputs": [
|
| 5092 |
{
|
| 5093 |
"data": {
|
|
@@ -5149,9 +5328,16 @@
|
|
| 5149 |
},
|
| 5150 |
{
|
| 5151 |
"cell_type": "code",
|
| 5152 |
-
"execution_count":
|
| 5153 |
"id": "015a6297",
|
| 5154 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5155 |
"outputs": [
|
| 5156 |
{
|
| 5157 |
"data": {
|
|
@@ -5204,9 +5390,16 @@
|
|
| 5204 |
},
|
| 5205 |
{
|
| 5206 |
"cell_type": "code",
|
| 5207 |
-
"execution_count":
|
| 5208 |
"id": "af6e2df9",
|
| 5209 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5210 |
"outputs": [
|
| 5211 |
{
|
| 5212 |
"data": {
|
|
@@ -5267,9 +5460,16 @@
|
|
| 5267 |
},
|
| 5268 |
{
|
| 5269 |
"cell_type": "code",
|
| 5270 |
-
"execution_count":
|
| 5271 |
"id": "b0b6668e",
|
| 5272 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5273 |
"outputs": [
|
| 5274 |
{
|
| 5275 |
"data": {
|
|
@@ -5287,7 +5487,13 @@
|
|
| 5287 |
"text": [
|
| 5288 |
"Components for 80%: 6\n",
|
| 5289 |
"Components for 90%: 9\n",
|
| 5290 |
-
"Components for 95%: 13\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5291 |
"TwoNN intrinsic-dimension estimate: 9.17\n"
|
| 5292 |
]
|
| 5293 |
}
|
|
@@ -5350,9 +5556,16 @@
|
|
| 5350 |
},
|
| 5351 |
{
|
| 5352 |
"cell_type": "code",
|
| 5353 |
-
"execution_count":
|
| 5354 |
"id": "64845ed2",
|
| 5355 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5356 |
"outputs": [
|
| 5357 |
{
|
| 5358 |
"data": {
|
|
@@ -5403,16 +5616,29 @@
|
|
| 5403 |
},
|
| 5404 |
{
|
| 5405 |
"cell_type": "code",
|
| 5406 |
-
"execution_count":
|
| 5407 |
"id": "4d2fd903",
|
| 5408 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5409 |
"outputs": [
|
| 5410 |
{
|
| 5411 |
"name": "stderr",
|
| 5412 |
"output_type": "stream",
|
| 5413 |
"text": [
|
| 5414 |
"/Users/agzapico/Documents/Repos/DRMHB/.venv/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
| 5415 |
-
" from .autonotebook import tqdm as notebook_tqdm\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5416 |
"/Users/agzapico/Documents/Repos/DRMHB/.venv/lib/python3.12/site-packages/umap/umap_.py:1952: UserWarning: n_jobs value 1 overridden to 1 by setting random_state. Use no seed for parallelism.\n",
|
| 5417 |
" warn(\n"
|
| 5418 |
]
|
|
@@ -5474,9 +5700,16 @@
|
|
| 5474 |
},
|
| 5475 |
{
|
| 5476 |
"cell_type": "code",
|
| 5477 |
-
"execution_count":
|
| 5478 |
"id": "9d5ee546",
|
| 5479 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5480 |
"outputs": [
|
| 5481 |
{
|
| 5482 |
"name": "stdout",
|
|
@@ -5561,9 +5794,16 @@
|
|
| 5561 |
},
|
| 5562 |
{
|
| 5563 |
"cell_type": "code",
|
| 5564 |
-
"execution_count":
|
| 5565 |
"id": "c45a61f4",
|
| 5566 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5567 |
"outputs": [],
|
| 5568 |
"source": [
|
| 5569 |
"def first_truth_column(keywords, *, exclude=()):\n",
|
|
@@ -5661,9 +5901,16 @@
|
|
| 5661 |
},
|
| 5662 |
{
|
| 5663 |
"cell_type": "code",
|
| 5664 |
-
"execution_count":
|
| 5665 |
"id": "85c6aab6",
|
| 5666 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5667 |
"outputs": [
|
| 5668 |
{
|
| 5669 |
"name": "stdout",
|
|
@@ -5847,9 +6094,16 @@
|
|
| 5847 |
},
|
| 5848 |
{
|
| 5849 |
"cell_type": "code",
|
| 5850 |
-
"execution_count":
|
| 5851 |
"id": "25e525c8",
|
| 5852 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5853 |
"outputs": [
|
| 5854 |
{
|
| 5855 |
"data": {
|
|
@@ -5980,9 +6234,16 @@
|
|
| 5980 |
},
|
| 5981 |
{
|
| 5982 |
"cell_type": "code",
|
| 5983 |
-
"execution_count":
|
| 5984 |
"id": "43265db8",
|
| 5985 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5986 |
"outputs": [
|
| 5987 |
{
|
| 5988 |
"data": {
|
|
@@ -6064,9 +6325,16 @@
|
|
| 6064 |
},
|
| 6065 |
{
|
| 6066 |
"cell_type": "code",
|
| 6067 |
-
"execution_count":
|
| 6068 |
"id": "7692dd90",
|
| 6069 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6070 |
"outputs": [
|
| 6071 |
{
|
| 6072 |
"data": {
|
|
@@ -6156,9 +6424,16 @@
|
|
| 6156 |
},
|
| 6157 |
{
|
| 6158 |
"cell_type": "code",
|
| 6159 |
-
"execution_count":
|
| 6160 |
"id": "a0ffe60e",
|
| 6161 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6162 |
"outputs": [
|
| 6163 |
{
|
| 6164 |
"data": {
|
|
@@ -6476,9 +6751,16 @@
|
|
| 6476 |
},
|
| 6477 |
{
|
| 6478 |
"cell_type": "code",
|
| 6479 |
-
"execution_count":
|
| 6480 |
"id": "1892d117",
|
| 6481 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6482 |
"outputs": [
|
| 6483 |
{
|
| 6484 |
"data": {
|
|
@@ -6579,9 +6861,16 @@
|
|
| 6579 |
},
|
| 6580 |
{
|
| 6581 |
"cell_type": "code",
|
| 6582 |
-
"execution_count":
|
| 6583 |
"id": "9387cc16",
|
| 6584 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6585 |
"outputs": [
|
| 6586 |
{
|
| 6587 |
"data": {
|
|
@@ -6732,9 +7021,16 @@
|
|
| 6732 |
},
|
| 6733 |
{
|
| 6734 |
"cell_type": "code",
|
| 6735 |
-
"execution_count":
|
| 6736 |
"id": "d1790db6",
|
| 6737 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6738 |
"outputs": [
|
| 6739 |
{
|
| 6740 |
"name": "stdout",
|
|
@@ -6780,7 +7076,13 @@
|
|
| 6780 |
" - rms | pump_DE_V\n",
|
| 6781 |
" - vel_overall_rms | pump_DE_A\n",
|
| 6782 |
" - vel_overall_rms | pump_DE_H\n",
|
| 6783 |
-
" - vel_overall_rms | pump_DE_V\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6784 |
"X_train : (8179, 39)\n",
|
| 6785 |
"X_hold : (3723, 39)\n",
|
| 6786 |
"X_future: (35005, 39)\n",
|
|
@@ -6889,17 +7191,24 @@
|
|
| 6889 |
},
|
| 6890 |
{
|
| 6891 |
"cell_type": "code",
|
| 6892 |
-
"execution_count":
|
| 6893 |
"id": "8794ae1b",
|
| 6894 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6895 |
"outputs": [
|
| 6896 |
{
|
| 6897 |
"name": "stderr",
|
| 6898 |
"output_type": "stream",
|
| 6899 |
"text": [
|
| 6900 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 6901 |
" ALARM_PERSISTENCE = pd.Timedelta(hours=6)\n",
|
| 6902 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 6903 |
" MAX_ALARM_GAP = pd.Timedelta(hours=4.5)\n"
|
| 6904 |
]
|
| 6905 |
}
|
|
@@ -7004,43 +7313,62 @@
|
|
| 7004 |
},
|
| 7005 |
{
|
| 7006 |
"cell_type": "code",
|
| 7007 |
-
"execution_count":
|
| 7008 |
"id": "31344640",
|
| 7009 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7010 |
"outputs": [
|
| 7011 |
{
|
| 7012 |
"name": "stderr",
|
| 7013 |
"output_type": "stream",
|
| 7014 |
"text": [
|
| 7015 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7016 |
-
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7017 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_27534/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7018 |
-
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7019 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_27534/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7020 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7021 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7022 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7023 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7024 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7025 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7026 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7027 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7028 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7029 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7030 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7031 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7032 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7033 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7034 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7035 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7036 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7037 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7038 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7039 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7040 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7041 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7042 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7043 |
-
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/
|
| 7044 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n"
|
| 7045 |
]
|
| 7046 |
},
|
|
@@ -7256,9 +7584,16 @@
|
|
| 7256 |
},
|
| 7257 |
{
|
| 7258 |
"cell_type": "code",
|
| 7259 |
-
"execution_count":
|
| 7260 |
"id": "7b3cda77",
|
| 7261 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7262 |
"outputs": [
|
| 7263 |
{
|
| 7264 |
"data": {
|
|
@@ -7324,9 +7659,16 @@
|
|
| 7324 |
},
|
| 7325 |
{
|
| 7326 |
"cell_type": "code",
|
| 7327 |
-
"execution_count":
|
| 7328 |
"id": "e517fbfc",
|
| 7329 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7330 |
"outputs": [
|
| 7331 |
{
|
| 7332 |
"data": {
|
|
@@ -7382,9 +7724,16 @@
|
|
| 7382 |
},
|
| 7383 |
{
|
| 7384 |
"cell_type": "code",
|
| 7385 |
-
"execution_count":
|
| 7386 |
"id": "9d828732",
|
| 7387 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7388 |
"outputs": [
|
| 7389 |
{
|
| 7390 |
"name": "stdout",
|
|
@@ -7457,9 +7806,16 @@
|
|
| 7457 |
},
|
| 7458 |
{
|
| 7459 |
"cell_type": "code",
|
| 7460 |
-
"execution_count":
|
| 7461 |
"id": "9f19d556",
|
| 7462 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7463 |
"outputs": [
|
| 7464 |
{
|
| 7465 |
"name": "stdout",
|
|
@@ -7544,9 +7900,16 @@
|
|
| 7544 |
},
|
| 7545 |
{
|
| 7546 |
"cell_type": "code",
|
| 7547 |
-
"execution_count":
|
| 7548 |
"id": "4ffc8b64",
|
| 7549 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7550 |
"outputs": [
|
| 7551 |
{
|
| 7552 |
"data": {
|
|
@@ -7629,9 +7992,16 @@
|
|
| 7629 |
},
|
| 7630 |
{
|
| 7631 |
"cell_type": "code",
|
| 7632 |
-
"execution_count":
|
| 7633 |
"id": "007b32ad",
|
| 7634 |
-
"metadata": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7635 |
"outputs": [
|
| 7636 |
{
|
| 7637 |
"data": {
|
|
@@ -7737,17 +8107,19 @@
|
|
| 7737 |
"without first reading the generator implementation: fleet chronology, operating envelope,\n",
|
| 7738 |
"transition connectivity/hysteresis, waveform-storage policy, machine/regime fingerprints,\n",
|
| 7739 |
"fault chronology/signatures, and baseline difficulty are all visualized directly from the\n",
|
| 7740 |
-
"persisted dataset and evaluation sidecar. Document-ready figures are written in both PDF and PNG form to `derived/eda_v0.3.0/figures/`; `manifest.csv` records the question answered by each export. The
|
| 7741 |
]
|
| 7742 |
}
|
| 7743 |
],
|
| 7744 |
"metadata": {
|
| 7745 |
"drmhb_provenance": {
|
| 7746 |
-
"execution_status": "
|
| 7747 |
-
"
|
| 7748 |
-
"
|
| 7749 |
-
"
|
| 7750 |
-
"
|
|
|
|
|
|
|
| 7751 |
},
|
| 7752 |
"kernelspec": {
|
| 7753 |
"display_name": "vibframe-fleet-eda (3.12.14)",
|
|
|
|
| 32 |
"The notebook derives claims from the generated data rather than copying the generator plan. Selected figures are exported as PDF and PNG under `derived/eda_v0.3.0/figures/`, with a manifest describing the question answered by each figure.\n",
|
| 33 |
"### Reproducible use\n",
|
| 34 |
"\n",
|
| 35 |
+
"This notebook uses `vibframe-anndata==0.3.0` with complete annotations and the\n",
|
| 36 |
+
"current 2.6.0 compact campaign. A complete execution exports plots and tables to\n",
|
| 37 |
+
"`derived/eda_v0.3.0/`; the reviewed exports are promoted into the dataset report\n",
|
| 38 |
+
"with `python tools/build_report.py --refresh-assets`. Source identities and\n",
|
| 39 |
+
"checks are recorded in `docs/provenance/current_dataset.json` and\n",
|
| 40 |
+
"`latexdocs/provenance/eda_assets.json`. Paired controls remain a separate corpus.\n"
|
|
|
|
| 41 |
]
|
| 42 |
},
|
| 43 |
{
|
|
|
|
| 61 |
},
|
| 62 |
{
|
| 63 |
"cell_type": "code",
|
| 64 |
+
"execution_count": 1,
|
| 65 |
"id": "8341546f",
|
| 66 |
+
"metadata": {
|
| 67 |
+
"execution": {
|
| 68 |
+
"iopub.execute_input": "2026-10-01T06:55:53.580307Z",
|
| 69 |
+
"iopub.status.busy": "2026-10-01T06:55:53.580033Z",
|
| 70 |
+
"iopub.status.idle": "2026-10-01T06:56:08.165794Z",
|
| 71 |
+
"shell.execute_reply": "2026-10-01T06:56:08.165345Z"
|
| 72 |
+
}
|
| 73 |
+
},
|
| 74 |
"outputs": [
|
| 75 |
+
{
|
| 76 |
+
"name": "stderr",
|
| 77 |
+
"output_type": "stream",
|
| 78 |
+
"text": [
|
| 79 |
+
"Matplotlib is building the font cache; this may take a moment.\n"
|
| 80 |
+
]
|
| 81 |
+
},
|
| 82 |
{
|
| 83 |
"name": "stdout",
|
| 84 |
"output_type": "stream",
|
|
|
|
| 167 |
},
|
| 168 |
{
|
| 169 |
"cell_type": "code",
|
| 170 |
+
"execution_count": 2,
|
| 171 |
"id": "f1ee8d23",
|
| 172 |
+
"metadata": {
|
| 173 |
+
"execution": {
|
| 174 |
+
"iopub.execute_input": "2026-10-01T06:56:08.167054Z",
|
| 175 |
+
"iopub.status.busy": "2026-10-01T06:56:08.166876Z",
|
| 176 |
+
"iopub.status.idle": "2026-10-01T06:56:09.694925Z",
|
| 177 |
+
"shell.execute_reply": "2026-10-01T06:56:09.694116Z"
|
| 178 |
+
}
|
| 179 |
+
},
|
| 180 |
"outputs": [
|
| 181 |
{
|
| 182 |
"name": "stdout",
|
| 183 |
"output_type": "stream",
|
| 184 |
"text": [
|
|
|
|
|
|
|
| 185 |
"Base: /Users/agzapico/Documents/Repos/DRMHB/derived/DRMHB-compact.v0.3.0.raw.h5ad (8.169 GiB)\n",
|
| 186 |
"Features: /Users/agzapico/Documents/Repos/DRMHB/derived/DRMHB-compact.v0.3.0.features.h5ad (8.265 GiB)\n",
|
| 187 |
+
"Free disk: 170.072 GiB; document assets: /Users/agzapico/Documents/Repos/DRMHB/derived/eda_v0.3.0/figures\n"
|
| 188 |
]
|
| 189 |
}
|
| 190 |
],
|
|
|
|
| 297 |
},
|
| 298 |
{
|
| 299 |
"cell_type": "code",
|
| 300 |
+
"execution_count": 3,
|
| 301 |
"id": "ee763b7b",
|
| 302 |
+
"metadata": {
|
| 303 |
+
"execution": {
|
| 304 |
+
"iopub.execute_input": "2026-10-01T06:56:09.696366Z",
|
| 305 |
+
"iopub.status.busy": "2026-10-01T06:56:09.696269Z",
|
| 306 |
+
"iopub.status.idle": "2026-10-01T06:56:09.700813Z",
|
| 307 |
+
"shell.execute_reply": "2026-10-01T06:56:09.700321Z"
|
| 308 |
+
}
|
| 309 |
+
},
|
| 310 |
"outputs": [
|
| 311 |
{
|
| 312 |
"data": {
|
|
|
|
| 332 |
" 'spectrum_compression_opts': None}"
|
| 333 |
]
|
| 334 |
},
|
| 335 |
+
"execution_count": 3,
|
| 336 |
"metadata": {},
|
| 337 |
"output_type": "execute_result"
|
| 338 |
}
|
|
|
|
| 357 |
},
|
| 358 |
{
|
| 359 |
"cell_type": "code",
|
| 360 |
+
"execution_count": 4,
|
| 361 |
"id": "9b0d60c6",
|
| 362 |
+
"metadata": {
|
| 363 |
+
"execution": {
|
| 364 |
+
"iopub.execute_input": "2026-10-01T06:56:09.701898Z",
|
| 365 |
+
"iopub.status.busy": "2026-10-01T06:56:09.701831Z",
|
| 366 |
+
"iopub.status.idle": "2026-10-01T06:56:10.743825Z",
|
| 367 |
+
"shell.execute_reply": "2026-10-01T06:56:10.743431Z"
|
| 368 |
+
}
|
| 369 |
+
},
|
| 370 |
"outputs": [
|
| 371 |
{
|
| 372 |
"name": "stdout",
|
|
|
|
| 1706 |
},
|
| 1707 |
{
|
| 1708 |
"cell_type": "code",
|
| 1709 |
+
"execution_count": 5,
|
| 1710 |
"id": "5a556ac4",
|
| 1711 |
+
"metadata": {
|
| 1712 |
+
"execution": {
|
| 1713 |
+
"iopub.execute_input": "2026-10-01T06:56:10.744912Z",
|
| 1714 |
+
"iopub.status.busy": "2026-10-01T06:56:10.744819Z",
|
| 1715 |
+
"iopub.status.idle": "2026-10-01T06:56:11.397807Z",
|
| 1716 |
+
"shell.execute_reply": "2026-10-01T06:56:11.397259Z"
|
| 1717 |
+
}
|
| 1718 |
+
},
|
| 1719 |
"outputs": [
|
| 1720 |
{
|
| 1721 |
"data": {
|
|
|
|
| 2132 |
},
|
| 2133 |
{
|
| 2134 |
"cell_type": "code",
|
| 2135 |
+
"execution_count": 6,
|
| 2136 |
"id": "f24738df",
|
| 2137 |
+
"metadata": {
|
| 2138 |
+
"execution": {
|
| 2139 |
+
"iopub.execute_input": "2026-10-01T06:56:11.398992Z",
|
| 2140 |
+
"iopub.status.busy": "2026-10-01T06:56:11.398892Z",
|
| 2141 |
+
"iopub.status.idle": "2026-10-01T06:56:14.184932Z",
|
| 2142 |
+
"shell.execute_reply": "2026-10-01T06:56:14.184145Z"
|
| 2143 |
+
}
|
| 2144 |
+
},
|
| 2145 |
"outputs": [
|
| 2146 |
{
|
| 2147 |
"data": {
|
|
|
|
| 2635 |
},
|
| 2636 |
{
|
| 2637 |
"cell_type": "code",
|
| 2638 |
+
"execution_count": 7,
|
| 2639 |
"id": "af98f5df",
|
| 2640 |
+
"metadata": {
|
| 2641 |
+
"execution": {
|
| 2642 |
+
"iopub.execute_input": "2026-10-01T06:56:14.189131Z",
|
| 2643 |
+
"iopub.status.busy": "2026-10-01T06:56:14.188974Z",
|
| 2644 |
+
"iopub.status.idle": "2026-10-01T06:56:14.813280Z",
|
| 2645 |
+
"shell.execute_reply": "2026-10-01T06:56:14.812525Z"
|
| 2646 |
+
}
|
| 2647 |
+
},
|
| 2648 |
"outputs": [
|
| 2649 |
{
|
| 2650 |
"data": {
|
|
|
|
| 2700 |
},
|
| 2701 |
{
|
| 2702 |
"cell_type": "code",
|
| 2703 |
+
"execution_count": 8,
|
| 2704 |
"id": "b0bdf9ca",
|
| 2705 |
+
"metadata": {
|
| 2706 |
+
"execution": {
|
| 2707 |
+
"iopub.execute_input": "2026-10-01T06:56:14.815029Z",
|
| 2708 |
+
"iopub.status.busy": "2026-10-01T06:56:14.814845Z",
|
| 2709 |
+
"iopub.status.idle": "2026-10-01T06:56:14.959117Z",
|
| 2710 |
+
"shell.execute_reply": "2026-10-01T06:56:14.958690Z"
|
| 2711 |
+
}
|
| 2712 |
+
},
|
| 2713 |
"outputs": [
|
| 2714 |
{
|
| 2715 |
"data": {
|
|
|
|
| 2825 |
},
|
| 2826 |
{
|
| 2827 |
"cell_type": "code",
|
| 2828 |
+
"execution_count": 9,
|
| 2829 |
"id": "f03201ce",
|
| 2830 |
+
"metadata": {
|
| 2831 |
+
"execution": {
|
| 2832 |
+
"iopub.execute_input": "2026-10-01T06:56:14.960302Z",
|
| 2833 |
+
"iopub.status.busy": "2026-10-01T06:56:14.960226Z",
|
| 2834 |
+
"iopub.status.idle": "2026-10-01T06:56:15.223281Z",
|
| 2835 |
+
"shell.execute_reply": "2026-10-01T06:56:15.222885Z"
|
| 2836 |
+
}
|
| 2837 |
+
},
|
| 2838 |
"outputs": [
|
| 2839 |
{
|
| 2840 |
"data": {
|
|
|
|
| 3075 |
},
|
| 3076 |
{
|
| 3077 |
"cell_type": "code",
|
| 3078 |
+
"execution_count": 10,
|
| 3079 |
"id": "f3d0dc45",
|
| 3080 |
+
"metadata": {
|
| 3081 |
+
"execution": {
|
| 3082 |
+
"iopub.execute_input": "2026-10-01T06:56:15.224668Z",
|
| 3083 |
+
"iopub.status.busy": "2026-10-01T06:56:15.224579Z",
|
| 3084 |
+
"iopub.status.idle": "2026-10-01T06:56:16.427999Z",
|
| 3085 |
+
"shell.execute_reply": "2026-10-01T06:56:16.427543Z"
|
| 3086 |
+
}
|
| 3087 |
+
},
|
| 3088 |
"outputs": [
|
| 3089 |
{
|
| 3090 |
"data": {
|
|
|
|
| 3211 |
},
|
| 3212 |
{
|
| 3213 |
"cell_type": "code",
|
| 3214 |
+
"execution_count": 11,
|
| 3215 |
"id": "fea4b819",
|
| 3216 |
+
"metadata": {
|
| 3217 |
+
"execution": {
|
| 3218 |
+
"iopub.execute_input": "2026-10-01T06:56:16.429448Z",
|
| 3219 |
+
"iopub.status.busy": "2026-10-01T06:56:16.429339Z",
|
| 3220 |
+
"iopub.status.idle": "2026-10-01T06:56:17.734308Z",
|
| 3221 |
+
"shell.execute_reply": "2026-10-01T06:56:17.733783Z"
|
| 3222 |
+
}
|
| 3223 |
+
},
|
| 3224 |
"outputs": [
|
| 3225 |
{
|
| 3226 |
"data": {
|
|
|
|
| 3311 |
},
|
| 3312 |
{
|
| 3313 |
"cell_type": "code",
|
| 3314 |
+
"execution_count": 12,
|
| 3315 |
"id": "93bf7b65",
|
| 3316 |
+
"metadata": {
|
| 3317 |
+
"execution": {
|
| 3318 |
+
"iopub.execute_input": "2026-10-01T06:56:17.735516Z",
|
| 3319 |
+
"iopub.status.busy": "2026-10-01T06:56:17.735427Z",
|
| 3320 |
+
"iopub.status.idle": "2026-10-01T06:56:18.125968Z",
|
| 3321 |
+
"shell.execute_reply": "2026-10-01T06:56:18.125268Z"
|
| 3322 |
+
}
|
| 3323 |
+
},
|
| 3324 |
"outputs": [
|
| 3325 |
{
|
| 3326 |
"data": {
|
|
|
|
| 3392 |
},
|
| 3393 |
{
|
| 3394 |
"cell_type": "code",
|
| 3395 |
+
"execution_count": 13,
|
| 3396 |
"id": "beb50cfb",
|
| 3397 |
+
"metadata": {
|
| 3398 |
+
"execution": {
|
| 3399 |
+
"iopub.execute_input": "2026-10-01T06:56:18.127292Z",
|
| 3400 |
+
"iopub.status.busy": "2026-10-01T06:56:18.127198Z",
|
| 3401 |
+
"iopub.status.idle": "2026-10-01T06:56:18.143829Z",
|
| 3402 |
+
"shell.execute_reply": "2026-10-01T06:56:18.143406Z"
|
| 3403 |
+
}
|
| 3404 |
+
},
|
| 3405 |
"outputs": [
|
| 3406 |
{
|
| 3407 |
"name": "stdout",
|
|
|
|
| 3449 |
},
|
| 3450 |
{
|
| 3451 |
"cell_type": "code",
|
| 3452 |
+
"execution_count": 14,
|
| 3453 |
"id": "b95e77b5",
|
| 3454 |
+
"metadata": {
|
| 3455 |
+
"execution": {
|
| 3456 |
+
"iopub.execute_input": "2026-10-01T06:56:18.145194Z",
|
| 3457 |
+
"iopub.status.busy": "2026-10-01T06:56:18.145119Z",
|
| 3458 |
+
"iopub.status.idle": "2026-10-01T06:56:18.499445Z",
|
| 3459 |
+
"shell.execute_reply": "2026-10-01T06:56:18.499047Z"
|
| 3460 |
+
}
|
| 3461 |
+
},
|
| 3462 |
"outputs": [
|
| 3463 |
{
|
| 3464 |
"name": "stdout",
|
|
|
|
| 3473 |
"name": "stderr",
|
| 3474 |
"output_type": "stream",
|
| 3475 |
"text": [
|
| 3476 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/948014552.py:12: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 3477 |
" .gt(pd.Timedelta(minutes=30))\n",
|
| 3478 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/948014552.py:24: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 3479 |
" lo = example[\"timestamp\"].min() - pd.Timedelta(hours=1)\n",
|
| 3480 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/948014552.py:25: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 3481 |
" hi = example[\"timestamp\"].max() + pd.Timedelta(hours=1)\n"
|
| 3482 |
]
|
| 3483 |
},
|
|
|
|
| 3606 |
},
|
| 3607 |
{
|
| 3608 |
"cell_type": "code",
|
| 3609 |
+
"execution_count": 15,
|
| 3610 |
"id": "f801a856",
|
| 3611 |
+
"metadata": {
|
| 3612 |
+
"execution": {
|
| 3613 |
+
"iopub.execute_input": "2026-10-01T06:56:18.500977Z",
|
| 3614 |
+
"iopub.status.busy": "2026-10-01T06:56:18.500881Z",
|
| 3615 |
+
"iopub.status.idle": "2026-10-01T06:56:18.661145Z",
|
| 3616 |
+
"shell.execute_reply": "2026-10-01T06:56:18.660790Z"
|
| 3617 |
+
}
|
| 3618 |
+
},
|
| 3619 |
"outputs": [
|
| 3620 |
{
|
| 3621 |
"name": "stdout",
|
|
|
|
| 3700 |
},
|
| 3701 |
{
|
| 3702 |
"cell_type": "code",
|
| 3703 |
+
"execution_count": 16,
|
| 3704 |
"id": "08a1c195",
|
| 3705 |
+
"metadata": {
|
| 3706 |
+
"execution": {
|
| 3707 |
+
"iopub.execute_input": "2026-10-01T06:56:18.662562Z",
|
| 3708 |
+
"iopub.status.busy": "2026-10-01T06:56:18.662468Z",
|
| 3709 |
+
"iopub.status.idle": "2026-10-01T06:56:19.670962Z",
|
| 3710 |
+
"shell.execute_reply": "2026-10-01T06:56:19.670528Z"
|
| 3711 |
+
}
|
| 3712 |
+
},
|
| 3713 |
"outputs": [
|
| 3714 |
{
|
| 3715 |
"data": {
|
|
|
|
| 3844 |
},
|
| 3845 |
{
|
| 3846 |
"cell_type": "code",
|
| 3847 |
+
"execution_count": 17,
|
| 3848 |
"id": "4c105742",
|
| 3849 |
+
"metadata": {
|
| 3850 |
+
"execution": {
|
| 3851 |
+
"iopub.execute_input": "2026-10-01T06:56:19.672030Z",
|
| 3852 |
+
"iopub.status.busy": "2026-10-01T06:56:19.671953Z",
|
| 3853 |
+
"iopub.status.idle": "2026-10-01T06:56:19.676898Z",
|
| 3854 |
+
"shell.execute_reply": "2026-10-01T06:56:19.676590Z"
|
| 3855 |
+
}
|
| 3856 |
+
},
|
| 3857 |
"outputs": [],
|
| 3858 |
"source": [
|
| 3859 |
"def find_channel(channels, *, machine, point_id, proc_mode_id):\n",
|
|
|
|
| 3932 |
},
|
| 3933 |
{
|
| 3934 |
"cell_type": "code",
|
| 3935 |
+
"execution_count": 18,
|
| 3936 |
"id": "19688b01",
|
| 3937 |
+
"metadata": {
|
| 3938 |
+
"execution": {
|
| 3939 |
+
"iopub.execute_input": "2026-10-01T06:56:19.677909Z",
|
| 3940 |
+
"iopub.status.busy": "2026-10-01T06:56:19.677837Z",
|
| 3941 |
+
"iopub.status.idle": "2026-10-01T06:56:20.064610Z",
|
| 3942 |
+
"shell.execute_reply": "2026-10-01T06:56:20.064196Z"
|
| 3943 |
+
}
|
| 3944 |
+
},
|
| 3945 |
"outputs": [
|
| 3946 |
{
|
| 3947 |
"data": {
|
|
|
|
| 4033 |
},
|
| 4034 |
{
|
| 4035 |
"cell_type": "code",
|
| 4036 |
+
"execution_count": 19,
|
| 4037 |
"id": "41604920",
|
| 4038 |
+
"metadata": {
|
| 4039 |
+
"execution": {
|
| 4040 |
+
"iopub.execute_input": "2026-10-01T06:56:20.065673Z",
|
| 4041 |
+
"iopub.status.busy": "2026-10-01T06:56:20.065604Z",
|
| 4042 |
+
"iopub.status.idle": "2026-10-01T06:56:20.069025Z",
|
| 4043 |
+
"shell.execute_reply": "2026-10-01T06:56:20.068612Z"
|
| 4044 |
+
}
|
| 4045 |
+
},
|
| 4046 |
"outputs": [
|
| 4047 |
{
|
| 4048 |
"data": {
|
|
|
|
| 4176 |
},
|
| 4177 |
{
|
| 4178 |
"cell_type": "code",
|
| 4179 |
+
"execution_count": 20,
|
| 4180 |
"id": "5693c86c",
|
| 4181 |
+
"metadata": {
|
| 4182 |
+
"execution": {
|
| 4183 |
+
"iopub.execute_input": "2026-10-01T06:56:20.070032Z",
|
| 4184 |
+
"iopub.status.busy": "2026-10-01T06:56:20.069963Z",
|
| 4185 |
+
"iopub.status.idle": "2026-10-01T06:56:20.072235Z",
|
| 4186 |
+
"shell.execute_reply": "2026-10-01T06:56:20.071842Z"
|
| 4187 |
+
}
|
| 4188 |
+
},
|
| 4189 |
"outputs": [
|
| 4190 |
{
|
| 4191 |
"data": {
|
|
|
|
| 4211 |
" 'spectrum_compression_opts': None}"
|
| 4212 |
]
|
| 4213 |
},
|
| 4214 |
+
"execution_count": 20,
|
| 4215 |
"metadata": {},
|
| 4216 |
"output_type": "execute_result"
|
| 4217 |
}
|
|
|
|
| 4234 |
},
|
| 4235 |
{
|
| 4236 |
"cell_type": "code",
|
| 4237 |
+
"execution_count": 21,
|
| 4238 |
"id": "0f0b10a3",
|
| 4239 |
+
"metadata": {
|
| 4240 |
+
"execution": {
|
| 4241 |
+
"iopub.execute_input": "2026-10-01T06:56:20.073139Z",
|
| 4242 |
+
"iopub.status.busy": "2026-10-01T06:56:20.073078Z",
|
| 4243 |
+
"iopub.status.idle": "2026-10-01T06:56:20.563358Z",
|
| 4244 |
+
"shell.execute_reply": "2026-10-01T06:56:20.562944Z"
|
| 4245 |
+
}
|
| 4246 |
+
},
|
| 4247 |
"outputs": [
|
| 4248 |
{
|
| 4249 |
"name": "stdout",
|
|
|
|
| 4879 |
},
|
| 4880 |
{
|
| 4881 |
"cell_type": "code",
|
| 4882 |
+
"execution_count": 22,
|
| 4883 |
"id": "06a3d8a0",
|
| 4884 |
+
"metadata": {
|
| 4885 |
+
"execution": {
|
| 4886 |
+
"iopub.execute_input": "2026-10-01T06:56:20.564429Z",
|
| 4887 |
+
"iopub.status.busy": "2026-10-01T06:56:20.564351Z",
|
| 4888 |
+
"iopub.status.idle": "2026-10-01T06:56:20.658493Z",
|
| 4889 |
+
"shell.execute_reply": "2026-10-01T06:56:20.658075Z"
|
| 4890 |
+
}
|
| 4891 |
+
},
|
| 4892 |
"outputs": [
|
| 4893 |
{
|
| 4894 |
"data": {
|
|
|
|
| 5192 |
},
|
| 5193 |
{
|
| 5194 |
"cell_type": "code",
|
| 5195 |
+
"execution_count": 23,
|
| 5196 |
"id": "713fded0",
|
| 5197 |
+
"metadata": {
|
| 5198 |
+
"execution": {
|
| 5199 |
+
"iopub.execute_input": "2026-10-01T06:56:20.659691Z",
|
| 5200 |
+
"iopub.status.busy": "2026-10-01T06:56:20.659617Z",
|
| 5201 |
+
"iopub.status.idle": "2026-10-01T06:56:20.828799Z",
|
| 5202 |
+
"shell.execute_reply": "2026-10-01T06:56:20.828394Z"
|
| 5203 |
+
}
|
| 5204 |
+
},
|
| 5205 |
"outputs": [
|
| 5206 |
{
|
| 5207 |
"data": {
|
|
|
|
| 5237 |
},
|
| 5238 |
{
|
| 5239 |
"cell_type": "code",
|
| 5240 |
+
"execution_count": 24,
|
| 5241 |
"id": "ce56a659",
|
| 5242 |
+
"metadata": {
|
| 5243 |
+
"execution": {
|
| 5244 |
+
"iopub.execute_input": "2026-10-01T06:56:20.829963Z",
|
| 5245 |
+
"iopub.status.busy": "2026-10-01T06:56:20.829877Z",
|
| 5246 |
+
"iopub.status.idle": "2026-10-01T06:56:20.833786Z",
|
| 5247 |
+
"shell.execute_reply": "2026-10-01T06:56:20.833136Z"
|
| 5248 |
+
}
|
| 5249 |
+
},
|
| 5250 |
"outputs": [],
|
| 5251 |
"source": [
|
| 5252 |
"if \"split\" in truth_f:\n",
|
|
|
|
| 5257 |
},
|
| 5258 |
{
|
| 5259 |
"cell_type": "code",
|
| 5260 |
+
"execution_count": 25,
|
| 5261 |
"id": "2f5498f8",
|
| 5262 |
+
"metadata": {
|
| 5263 |
+
"execution": {
|
| 5264 |
+
"iopub.execute_input": "2026-10-01T06:56:20.834973Z",
|
| 5265 |
+
"iopub.status.busy": "2026-10-01T06:56:20.834907Z",
|
| 5266 |
+
"iopub.status.idle": "2026-10-01T06:56:21.297657Z",
|
| 5267 |
+
"shell.execute_reply": "2026-10-01T06:56:21.297239Z"
|
| 5268 |
+
}
|
| 5269 |
+
},
|
| 5270 |
"outputs": [
|
| 5271 |
{
|
| 5272 |
"data": {
|
|
|
|
| 5328 |
},
|
| 5329 |
{
|
| 5330 |
"cell_type": "code",
|
| 5331 |
+
"execution_count": 26,
|
| 5332 |
"id": "015a6297",
|
| 5333 |
+
"metadata": {
|
| 5334 |
+
"execution": {
|
| 5335 |
+
"iopub.execute_input": "2026-10-01T06:56:21.298795Z",
|
| 5336 |
+
"iopub.status.busy": "2026-10-01T06:56:21.298706Z",
|
| 5337 |
+
"iopub.status.idle": "2026-10-01T06:56:21.621832Z",
|
| 5338 |
+
"shell.execute_reply": "2026-10-01T06:56:21.621431Z"
|
| 5339 |
+
}
|
| 5340 |
+
},
|
| 5341 |
"outputs": [
|
| 5342 |
{
|
| 5343 |
"data": {
|
|
|
|
| 5390 |
},
|
| 5391 |
{
|
| 5392 |
"cell_type": "code",
|
| 5393 |
+
"execution_count": 27,
|
| 5394 |
"id": "af6e2df9",
|
| 5395 |
+
"metadata": {
|
| 5396 |
+
"execution": {
|
| 5397 |
+
"iopub.execute_input": "2026-10-01T06:56:21.622917Z",
|
| 5398 |
+
"iopub.status.busy": "2026-10-01T06:56:21.622822Z",
|
| 5399 |
+
"iopub.status.idle": "2026-10-01T06:56:21.728583Z",
|
| 5400 |
+
"shell.execute_reply": "2026-10-01T06:56:21.728201Z"
|
| 5401 |
+
}
|
| 5402 |
+
},
|
| 5403 |
"outputs": [
|
| 5404 |
{
|
| 5405 |
"data": {
|
|
|
|
| 5460 |
},
|
| 5461 |
{
|
| 5462 |
"cell_type": "code",
|
| 5463 |
+
"execution_count": 28,
|
| 5464 |
"id": "b0b6668e",
|
| 5465 |
+
"metadata": {
|
| 5466 |
+
"execution": {
|
| 5467 |
+
"iopub.execute_input": "2026-10-01T06:56:21.729765Z",
|
| 5468 |
+
"iopub.status.busy": "2026-10-01T06:56:21.729695Z",
|
| 5469 |
+
"iopub.status.idle": "2026-10-01T06:56:22.193939Z",
|
| 5470 |
+
"shell.execute_reply": "2026-10-01T06:56:22.193468Z"
|
| 5471 |
+
}
|
| 5472 |
+
},
|
| 5473 |
"outputs": [
|
| 5474 |
{
|
| 5475 |
"data": {
|
|
|
|
| 5487 |
"text": [
|
| 5488 |
"Components for 80%: 6\n",
|
| 5489 |
"Components for 90%: 9\n",
|
| 5490 |
+
"Components for 95%: 13\n"
|
| 5491 |
+
]
|
| 5492 |
+
},
|
| 5493 |
+
{
|
| 5494 |
+
"name": "stdout",
|
| 5495 |
+
"output_type": "stream",
|
| 5496 |
+
"text": [
|
| 5497 |
"TwoNN intrinsic-dimension estimate: 9.17\n"
|
| 5498 |
]
|
| 5499 |
}
|
|
|
|
| 5556 |
},
|
| 5557 |
{
|
| 5558 |
"cell_type": "code",
|
| 5559 |
+
"execution_count": 29,
|
| 5560 |
"id": "64845ed2",
|
| 5561 |
+
"metadata": {
|
| 5562 |
+
"execution": {
|
| 5563 |
+
"iopub.execute_input": "2026-10-01T06:56:22.195634Z",
|
| 5564 |
+
"iopub.status.busy": "2026-10-01T06:56:22.195500Z",
|
| 5565 |
+
"iopub.status.idle": "2026-10-01T06:56:23.259570Z",
|
| 5566 |
+
"shell.execute_reply": "2026-10-01T06:56:23.259090Z"
|
| 5567 |
+
}
|
| 5568 |
+
},
|
| 5569 |
"outputs": [
|
| 5570 |
{
|
| 5571 |
"data": {
|
|
|
|
| 5616 |
},
|
| 5617 |
{
|
| 5618 |
"cell_type": "code",
|
| 5619 |
+
"execution_count": 30,
|
| 5620 |
"id": "4d2fd903",
|
| 5621 |
+
"metadata": {
|
| 5622 |
+
"execution": {
|
| 5623 |
+
"iopub.execute_input": "2026-10-01T06:56:23.261255Z",
|
| 5624 |
+
"iopub.status.busy": "2026-10-01T06:56:23.261131Z",
|
| 5625 |
+
"iopub.status.idle": "2026-10-01T06:56:49.509528Z",
|
| 5626 |
+
"shell.execute_reply": "2026-10-01T06:56:49.508608Z"
|
| 5627 |
+
}
|
| 5628 |
+
},
|
| 5629 |
"outputs": [
|
| 5630 |
{
|
| 5631 |
"name": "stderr",
|
| 5632 |
"output_type": "stream",
|
| 5633 |
"text": [
|
| 5634 |
"/Users/agzapico/Documents/Repos/DRMHB/.venv/lib/python3.12/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n",
|
| 5635 |
+
" from .autonotebook import tqdm as notebook_tqdm\n"
|
| 5636 |
+
]
|
| 5637 |
+
},
|
| 5638 |
+
{
|
| 5639 |
+
"name": "stderr",
|
| 5640 |
+
"output_type": "stream",
|
| 5641 |
+
"text": [
|
| 5642 |
"/Users/agzapico/Documents/Repos/DRMHB/.venv/lib/python3.12/site-packages/umap/umap_.py:1952: UserWarning: n_jobs value 1 overridden to 1 by setting random_state. Use no seed for parallelism.\n",
|
| 5643 |
" warn(\n"
|
| 5644 |
]
|
|
|
|
| 5700 |
},
|
| 5701 |
{
|
| 5702 |
"cell_type": "code",
|
| 5703 |
+
"execution_count": 31,
|
| 5704 |
"id": "9d5ee546",
|
| 5705 |
+
"metadata": {
|
| 5706 |
+
"execution": {
|
| 5707 |
+
"iopub.execute_input": "2026-10-01T06:56:49.511989Z",
|
| 5708 |
+
"iopub.status.busy": "2026-10-01T06:56:49.511903Z",
|
| 5709 |
+
"iopub.status.idle": "2026-10-01T06:56:49.597599Z",
|
| 5710 |
+
"shell.execute_reply": "2026-10-01T06:56:49.596907Z"
|
| 5711 |
+
}
|
| 5712 |
+
},
|
| 5713 |
"outputs": [
|
| 5714 |
{
|
| 5715 |
"name": "stdout",
|
|
|
|
| 5794 |
},
|
| 5795 |
{
|
| 5796 |
"cell_type": "code",
|
| 5797 |
+
"execution_count": 32,
|
| 5798 |
"id": "c45a61f4",
|
| 5799 |
+
"metadata": {
|
| 5800 |
+
"execution": {
|
| 5801 |
+
"iopub.execute_input": "2026-10-01T06:56:49.599183Z",
|
| 5802 |
+
"iopub.status.busy": "2026-10-01T06:56:49.599064Z",
|
| 5803 |
+
"iopub.status.idle": "2026-10-01T06:56:49.605093Z",
|
| 5804 |
+
"shell.execute_reply": "2026-10-01T06:56:49.604435Z"
|
| 5805 |
+
}
|
| 5806 |
+
},
|
| 5807 |
"outputs": [],
|
| 5808 |
"source": [
|
| 5809 |
"def first_truth_column(keywords, *, exclude=()):\n",
|
|
|
|
| 5901 |
},
|
| 5902 |
{
|
| 5903 |
"cell_type": "code",
|
| 5904 |
+
"execution_count": 33,
|
| 5905 |
"id": "85c6aab6",
|
| 5906 |
+
"metadata": {
|
| 5907 |
+
"execution": {
|
| 5908 |
+
"iopub.execute_input": "2026-10-01T06:56:49.606828Z",
|
| 5909 |
+
"iopub.status.busy": "2026-10-01T06:56:49.606676Z",
|
| 5910 |
+
"iopub.status.idle": "2026-10-01T06:56:49.797845Z",
|
| 5911 |
+
"shell.execute_reply": "2026-10-01T06:56:49.796909Z"
|
| 5912 |
+
}
|
| 5913 |
+
},
|
| 5914 |
"outputs": [
|
| 5915 |
{
|
| 5916 |
"name": "stdout",
|
|
|
|
| 6094 |
},
|
| 6095 |
{
|
| 6096 |
"cell_type": "code",
|
| 6097 |
+
"execution_count": 34,
|
| 6098 |
"id": "25e525c8",
|
| 6099 |
+
"metadata": {
|
| 6100 |
+
"execution": {
|
| 6101 |
+
"iopub.execute_input": "2026-10-01T06:56:49.799303Z",
|
| 6102 |
+
"iopub.status.busy": "2026-10-01T06:56:49.799218Z",
|
| 6103 |
+
"iopub.status.idle": "2026-10-01T06:56:52.077516Z",
|
| 6104 |
+
"shell.execute_reply": "2026-10-01T06:56:52.076594Z"
|
| 6105 |
+
}
|
| 6106 |
+
},
|
| 6107 |
"outputs": [
|
| 6108 |
{
|
| 6109 |
"data": {
|
|
|
|
| 6234 |
},
|
| 6235 |
{
|
| 6236 |
"cell_type": "code",
|
| 6237 |
+
"execution_count": 35,
|
| 6238 |
"id": "43265db8",
|
| 6239 |
+
"metadata": {
|
| 6240 |
+
"execution": {
|
| 6241 |
+
"iopub.execute_input": "2026-10-01T06:56:52.079334Z",
|
| 6242 |
+
"iopub.status.busy": "2026-10-01T06:56:52.079227Z",
|
| 6243 |
+
"iopub.status.idle": "2026-10-01T06:56:53.925811Z",
|
| 6244 |
+
"shell.execute_reply": "2026-10-01T06:56:53.925380Z"
|
| 6245 |
+
}
|
| 6246 |
+
},
|
| 6247 |
"outputs": [
|
| 6248 |
{
|
| 6249 |
"data": {
|
|
|
|
| 6325 |
},
|
| 6326 |
{
|
| 6327 |
"cell_type": "code",
|
| 6328 |
+
"execution_count": 36,
|
| 6329 |
"id": "7692dd90",
|
| 6330 |
+
"metadata": {
|
| 6331 |
+
"execution": {
|
| 6332 |
+
"iopub.execute_input": "2026-10-01T06:56:53.927453Z",
|
| 6333 |
+
"iopub.status.busy": "2026-10-01T06:56:53.927365Z",
|
| 6334 |
+
"iopub.status.idle": "2026-10-01T06:56:54.391032Z",
|
| 6335 |
+
"shell.execute_reply": "2026-10-01T06:56:54.390708Z"
|
| 6336 |
+
}
|
| 6337 |
+
},
|
| 6338 |
"outputs": [
|
| 6339 |
{
|
| 6340 |
"data": {
|
|
|
|
| 6424 |
},
|
| 6425 |
{
|
| 6426 |
"cell_type": "code",
|
| 6427 |
+
"execution_count": 37,
|
| 6428 |
"id": "a0ffe60e",
|
| 6429 |
+
"metadata": {
|
| 6430 |
+
"execution": {
|
| 6431 |
+
"iopub.execute_input": "2026-10-01T06:56:54.392350Z",
|
| 6432 |
+
"iopub.status.busy": "2026-10-01T06:56:54.392264Z",
|
| 6433 |
+
"iopub.status.idle": "2026-10-01T06:56:56.037780Z",
|
| 6434 |
+
"shell.execute_reply": "2026-10-01T06:56:56.037323Z"
|
| 6435 |
+
}
|
| 6436 |
+
},
|
| 6437 |
"outputs": [
|
| 6438 |
{
|
| 6439 |
"data": {
|
|
|
|
| 6751 |
},
|
| 6752 |
{
|
| 6753 |
"cell_type": "code",
|
| 6754 |
+
"execution_count": 38,
|
| 6755 |
"id": "1892d117",
|
| 6756 |
+
"metadata": {
|
| 6757 |
+
"execution": {
|
| 6758 |
+
"iopub.execute_input": "2026-10-01T06:56:56.039246Z",
|
| 6759 |
+
"iopub.status.busy": "2026-10-01T06:56:56.039138Z",
|
| 6760 |
+
"iopub.status.idle": "2026-10-01T06:56:56.046688Z",
|
| 6761 |
+
"shell.execute_reply": "2026-10-01T06:56:56.046272Z"
|
| 6762 |
+
}
|
| 6763 |
+
},
|
| 6764 |
"outputs": [
|
| 6765 |
{
|
| 6766 |
"data": {
|
|
|
|
| 6861 |
},
|
| 6862 |
{
|
| 6863 |
"cell_type": "code",
|
| 6864 |
+
"execution_count": 39,
|
| 6865 |
"id": "9387cc16",
|
| 6866 |
+
"metadata": {
|
| 6867 |
+
"execution": {
|
| 6868 |
+
"iopub.execute_input": "2026-10-01T06:56:56.047621Z",
|
| 6869 |
+
"iopub.status.busy": "2026-10-01T06:56:56.047556Z",
|
| 6870 |
+
"iopub.status.idle": "2026-10-01T06:56:57.306286Z",
|
| 6871 |
+
"shell.execute_reply": "2026-10-01T06:56:57.305908Z"
|
| 6872 |
+
}
|
| 6873 |
+
},
|
| 6874 |
"outputs": [
|
| 6875 |
{
|
| 6876 |
"data": {
|
|
|
|
| 7021 |
},
|
| 7022 |
{
|
| 7023 |
"cell_type": "code",
|
| 7024 |
+
"execution_count": 40,
|
| 7025 |
"id": "d1790db6",
|
| 7026 |
+
"metadata": {
|
| 7027 |
+
"execution": {
|
| 7028 |
+
"iopub.execute_input": "2026-10-01T06:56:57.307481Z",
|
| 7029 |
+
"iopub.status.busy": "2026-10-01T06:56:57.307400Z",
|
| 7030 |
+
"iopub.status.idle": "2026-10-01T06:56:57.621453Z",
|
| 7031 |
+
"shell.execute_reply": "2026-10-01T06:56:57.621139Z"
|
| 7032 |
+
}
|
| 7033 |
+
},
|
| 7034 |
"outputs": [
|
| 7035 |
{
|
| 7036 |
"name": "stdout",
|
|
|
|
| 7076 |
" - rms | pump_DE_V\n",
|
| 7077 |
" - vel_overall_rms | pump_DE_A\n",
|
| 7078 |
" - vel_overall_rms | pump_DE_H\n",
|
| 7079 |
+
" - vel_overall_rms | pump_DE_V\n"
|
| 7080 |
+
]
|
| 7081 |
+
},
|
| 7082 |
+
{
|
| 7083 |
+
"name": "stdout",
|
| 7084 |
+
"output_type": "stream",
|
| 7085 |
+
"text": [
|
| 7086 |
"X_train : (8179, 39)\n",
|
| 7087 |
"X_hold : (3723, 39)\n",
|
| 7088 |
"X_future: (35005, 39)\n",
|
|
|
|
| 7191 |
},
|
| 7192 |
{
|
| 7193 |
"cell_type": "code",
|
| 7194 |
+
"execution_count": 41,
|
| 7195 |
"id": "8794ae1b",
|
| 7196 |
+
"metadata": {
|
| 7197 |
+
"execution": {
|
| 7198 |
+
"iopub.execute_input": "2026-10-01T06:56:57.622767Z",
|
| 7199 |
+
"iopub.status.busy": "2026-10-01T06:56:57.622693Z",
|
| 7200 |
+
"iopub.status.idle": "2026-10-01T06:56:57.630251Z",
|
| 7201 |
+
"shell.execute_reply": "2026-10-01T06:56:57.629527Z"
|
| 7202 |
+
}
|
| 7203 |
+
},
|
| 7204 |
"outputs": [
|
| 7205 |
{
|
| 7206 |
"name": "stderr",
|
| 7207 |
"output_type": "stream",
|
| 7208 |
"text": [
|
| 7209 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:1: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7210 |
" ALARM_PERSISTENCE = pd.Timedelta(hours=6)\n",
|
| 7211 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:2: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7212 |
" MAX_ALARM_GAP = pd.Timedelta(hours=4.5)\n"
|
| 7213 |
]
|
| 7214 |
}
|
|
|
|
| 7313 |
},
|
| 7314 |
{
|
| 7315 |
"cell_type": "code",
|
| 7316 |
+
"execution_count": 42,
|
| 7317 |
"id": "31344640",
|
| 7318 |
+
"metadata": {
|
| 7319 |
+
"execution": {
|
| 7320 |
+
"iopub.execute_input": "2026-10-01T06:56:57.631326Z",
|
| 7321 |
+
"iopub.status.busy": "2026-10-01T06:56:57.631262Z",
|
| 7322 |
+
"iopub.status.idle": "2026-10-01T06:56:58.870983Z",
|
| 7323 |
+
"shell.execute_reply": "2026-10-01T06:56:58.870555Z"
|
| 7324 |
+
}
|
| 7325 |
+
},
|
| 7326 |
"outputs": [
|
| 7327 |
{
|
| 7328 |
"name": "stderr",
|
| 7329 |
"output_type": "stream",
|
| 7330 |
"text": [
|
| 7331 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7332 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7333 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7334 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7335 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7336 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7337 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7338 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7339 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7340 |
+
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n"
|
| 7341 |
+
]
|
| 7342 |
+
},
|
| 7343 |
+
{
|
| 7344 |
+
"name": "stderr",
|
| 7345 |
+
"output_type": "stream",
|
| 7346 |
+
"text": [
|
| 7347 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7348 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7349 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7350 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7351 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7352 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7353 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7354 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7355 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7356 |
+
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n"
|
| 7357 |
+
]
|
| 7358 |
+
},
|
| 7359 |
+
{
|
| 7360 |
+
"name": "stderr",
|
| 7361 |
+
"output_type": "stream",
|
| 7362 |
+
"text": [
|
| 7363 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7364 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7365 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7366 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7367 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7368 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7369 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7370 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n",
|
| 7371 |
+
"/var/folders/bv/rdwx1w692714why48mh5j1m80000gn/T/ipykernel_13171/10933082.py:49: DeprecationWarning: The 'generic' unit for NumPy timedelta is deprecated, and will raise an error in the future. This includes implicit conversion of bare integers (e.g. `+ 1`). Please use a specific unit instead.\n",
|
| 7372 |
" delay = float((pd.Timestamp(alarm_time) - pd.Timestamp(onset_time)) / pd.Timedelta(days=1))\n"
|
| 7373 |
]
|
| 7374 |
},
|
|
|
|
| 7584 |
},
|
| 7585 |
{
|
| 7586 |
"cell_type": "code",
|
| 7587 |
+
"execution_count": 43,
|
| 7588 |
"id": "7b3cda77",
|
| 7589 |
+
"metadata": {
|
| 7590 |
+
"execution": {
|
| 7591 |
+
"iopub.execute_input": "2026-10-01T06:56:58.872176Z",
|
| 7592 |
+
"iopub.status.busy": "2026-10-01T06:56:58.872104Z",
|
| 7593 |
+
"iopub.status.idle": "2026-10-01T06:56:59.184150Z",
|
| 7594 |
+
"shell.execute_reply": "2026-10-01T06:56:59.183720Z"
|
| 7595 |
+
}
|
| 7596 |
+
},
|
| 7597 |
"outputs": [
|
| 7598 |
{
|
| 7599 |
"data": {
|
|
|
|
| 7659 |
},
|
| 7660 |
{
|
| 7661 |
"cell_type": "code",
|
| 7662 |
+
"execution_count": 44,
|
| 7663 |
"id": "e517fbfc",
|
| 7664 |
+
"metadata": {
|
| 7665 |
+
"execution": {
|
| 7666 |
+
"iopub.execute_input": "2026-10-01T06:56:59.185128Z",
|
| 7667 |
+
"iopub.status.busy": "2026-10-01T06:56:59.185057Z",
|
| 7668 |
+
"iopub.status.idle": "2026-10-01T06:56:59.498139Z",
|
| 7669 |
+
"shell.execute_reply": "2026-10-01T06:56:59.497682Z"
|
| 7670 |
+
}
|
| 7671 |
+
},
|
| 7672 |
"outputs": [
|
| 7673 |
{
|
| 7674 |
"data": {
|
|
|
|
| 7724 |
},
|
| 7725 |
{
|
| 7726 |
"cell_type": "code",
|
| 7727 |
+
"execution_count": 45,
|
| 7728 |
"id": "9d828732",
|
| 7729 |
+
"metadata": {
|
| 7730 |
+
"execution": {
|
| 7731 |
+
"iopub.execute_input": "2026-10-01T06:56:59.499190Z",
|
| 7732 |
+
"iopub.status.busy": "2026-10-01T06:56:59.499101Z",
|
| 7733 |
+
"iopub.status.idle": "2026-10-01T06:56:59.670203Z",
|
| 7734 |
+
"shell.execute_reply": "2026-10-01T06:56:59.669760Z"
|
| 7735 |
+
}
|
| 7736 |
+
},
|
| 7737 |
"outputs": [
|
| 7738 |
{
|
| 7739 |
"name": "stdout",
|
|
|
|
| 7806 |
},
|
| 7807 |
{
|
| 7808 |
"cell_type": "code",
|
| 7809 |
+
"execution_count": 46,
|
| 7810 |
"id": "9f19d556",
|
| 7811 |
+
"metadata": {
|
| 7812 |
+
"execution": {
|
| 7813 |
+
"iopub.execute_input": "2026-10-01T06:56:59.671426Z",
|
| 7814 |
+
"iopub.status.busy": "2026-10-01T06:56:59.671273Z",
|
| 7815 |
+
"iopub.status.idle": "2026-10-01T06:56:59.677179Z",
|
| 7816 |
+
"shell.execute_reply": "2026-10-01T06:56:59.676780Z"
|
| 7817 |
+
}
|
| 7818 |
+
},
|
| 7819 |
"outputs": [
|
| 7820 |
{
|
| 7821 |
"name": "stdout",
|
|
|
|
| 7900 |
},
|
| 7901 |
{
|
| 7902 |
"cell_type": "code",
|
| 7903 |
+
"execution_count": 47,
|
| 7904 |
"id": "4ffc8b64",
|
| 7905 |
+
"metadata": {
|
| 7906 |
+
"execution": {
|
| 7907 |
+
"iopub.execute_input": "2026-10-01T06:56:59.678129Z",
|
| 7908 |
+
"iopub.status.busy": "2026-10-01T06:56:59.678053Z",
|
| 7909 |
+
"iopub.status.idle": "2026-10-01T06:57:00.182882Z",
|
| 7910 |
+
"shell.execute_reply": "2026-10-01T06:57:00.182473Z"
|
| 7911 |
+
}
|
| 7912 |
+
},
|
| 7913 |
"outputs": [
|
| 7914 |
{
|
| 7915 |
"data": {
|
|
|
|
| 7992 |
},
|
| 7993 |
{
|
| 7994 |
"cell_type": "code",
|
| 7995 |
+
"execution_count": 48,
|
| 7996 |
"id": "007b32ad",
|
| 7997 |
+
"metadata": {
|
| 7998 |
+
"execution": {
|
| 7999 |
+
"iopub.execute_input": "2026-10-01T06:57:00.184346Z",
|
| 8000 |
+
"iopub.status.busy": "2026-10-01T06:57:00.184243Z",
|
| 8001 |
+
"iopub.status.idle": "2026-10-01T06:57:00.972525Z",
|
| 8002 |
+
"shell.execute_reply": "2026-10-01T06:57:00.971989Z"
|
| 8003 |
+
}
|
| 8004 |
+
},
|
| 8005 |
"outputs": [
|
| 8006 |
{
|
| 8007 |
"data": {
|
|
|
|
| 8107 |
"without first reading the generator implementation: fleet chronology, operating envelope,\n",
|
| 8108 |
"transition connectivity/hysteresis, waveform-storage policy, machine/regime fingerprints,\n",
|
| 8109 |
"fault chronology/signatures, and baseline difficulty are all visualized directly from the\n",
|
| 8110 |
+
"persisted dataset and evaluation sidecar. Document-ready figures are written in both PDF and PNG form to `derived/eda_v0.3.0/figures/`; `manifest.csv` records the question answered by each export. The report uses the complete reviewed 2.6.0 execution. Promote new figures and tables together with their numerical narrative using `tools/build_report.py --refresh-assets`; the build rejects incomplete executions and records hashes.\n"
|
| 8111 |
]
|
| 8112 |
}
|
| 8113 |
],
|
| 8114 |
"metadata": {
|
| 8115 |
"drmhb_provenance": {
|
| 8116 |
+
"execution_status": "complete_current_campaign_execution",
|
| 8117 |
+
"dataset_generator_version": "2.6.0",
|
| 8118 |
+
"workflow_package_version": "0.3.0",
|
| 8119 |
+
"source_archive": "data/DRMHB-compact.vibframe.zip",
|
| 8120 |
+
"source_archive_sha256": "58d3fd1042cfac189ba9a464954fbcf3e6f990b75327ddaf1986d13e7583eb1b",
|
| 8121 |
+
"dataset_audit": "docs/provenance/current_dataset.json",
|
| 8122 |
+
"note": "All code cells executed sequentially without errors; complete current EDA promoted to the report."
|
| 8123 |
},
|
| 8124 |
"kernelspec": {
|
| 8125 |
"display_name": "vibframe-fleet-eda (3.12.14)",
|
tools/audit_dataset.py
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Audit local canonical ZIPs and H5AD derivatives without loading raw signals.
|
| 2 |
+
|
| 3 |
+
Run from the repository root with the examples' Python environment. The JSON is
|
| 4 |
+
measured evidence, not a generator storage estimate. --deep additionally checks
|
| 5 |
+
that every numerical raw buffer is identical in the base and feature H5ADs.
|
| 6 |
+
"""
|
| 7 |
+
from __future__ import annotations
|
| 8 |
+
|
| 9 |
+
import argparse
|
| 10 |
+
import hashlib
|
| 11 |
+
import io
|
| 12 |
+
import json
|
| 13 |
+
import sys
|
| 14 |
+
import zipfile
|
| 15 |
+
from datetime import datetime, timezone
|
| 16 |
+
from pathlib import Path
|
| 17 |
+
|
| 18 |
+
import h5py
|
| 19 |
+
import numpy as np
|
| 20 |
+
import pandas as pd
|
| 21 |
+
import pyarrow.parquet as pq
|
| 22 |
+
|
| 23 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 24 |
+
sys.path.insert(0, str(ROOT / "examples"))
|
| 25 |
+
from drmhb_workflow import preservation_signature, read_metadata, require_complete_drmhb
|
| 26 |
+
from vibframe_anndata import get_snapshot_ground_truth, read_evaluation_file
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
def sha256(path):
|
| 30 |
+
digest = hashlib.sha256()
|
| 31 |
+
with Path(path).open("rb") as handle:
|
| 32 |
+
for block in iter(lambda: handle.read(16 * 1024**2), b""):
|
| 33 |
+
digest.update(block)
|
| 34 |
+
return digest.hexdigest()
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def archive_summary(path):
|
| 38 |
+
with zipfile.ZipFile(path) as archive:
|
| 39 |
+
names = [n for n in archive.namelist() if not n.startswith("__MACOSX/") and not n.endswith("/")]
|
| 40 |
+
root = next(n.rsplit("/", 1)[0] for n in names if n.endswith("/scenario_config.json"))
|
| 41 |
+
config = json.loads(archive.read(root + "/scenario_config.json"))
|
| 42 |
+
frames = {}
|
| 43 |
+
for kind in ("snapshot", "waveform"):
|
| 44 |
+
parts = [pq.read_table(io.BytesIO(archive.read(n))).to_pandas() for n in names
|
| 45 |
+
if f"/evaluation/{kind}_truth/" in n and n.endswith(".parquet")]
|
| 46 |
+
frames[kind] = pd.concat(parts, ignore_index=True)
|
| 47 |
+
truth, wave = frames["snapshot"], frames["waveform"]
|
| 48 |
+
snapshot_columns = len(truth.columns)
|
| 49 |
+
truth["snap_t"] = truth["timestamp"]
|
| 50 |
+
keys = ["machine_id", "snap_t"]
|
| 51 |
+
assert not truth.duplicated(keys).any()
|
| 52 |
+
assert not wave.duplicated(keys + ["point_id"]).any()
|
| 53 |
+
assert len(wave) == 3 * len(truth)
|
| 54 |
+
assert wave.groupby(keys).waveform_n_samples.nunique().eq(1).all()
|
| 55 |
+
assert wave.groupby(keys).waveform_start_offset_s.nunique().eq(1).all()
|
| 56 |
+
validation = json.loads(archive.read(root + "/validation_report.json"))
|
| 57 |
+
quality = json.loads(archive.read(root + "/quality_report.json"))
|
| 58 |
+
assert validation["ok"] and quality["ok"]
|
| 59 |
+
assert quality["total_snapshots"] == len(truth)
|
| 60 |
+
assert quality["total_waveform_samples"] == int(wave.waveform_n_samples.sum())
|
| 61 |
+
result = {
|
| 62 |
+
"path": str(path.relative_to(ROOT)), "size_bytes": path.stat().st_size,
|
| 63 |
+
"sha256": sha256(path), "generator_version": config["script_version"],
|
| 64 |
+
"dataset_role": config["dataset_role"], "run_fingerprint": config["run_fingerprint"],
|
| 65 |
+
"snapshots": len(truth), "snapshot_truth_columns": snapshot_columns,
|
| 66 |
+
"spectral_signals": 6 * len(truth), "spectral_samples": 6 * 1601 * len(truth),
|
| 67 |
+
"waveform_signals": len(wave), "waveform_samples": int(wave.waveform_n_samples.sum()),
|
| 68 |
+
"splits": truth.split.value_counts().to_dict(),
|
| 69 |
+
"acquisition_counts": truth.acquisition_kind.value_counts().to_dict(),
|
| 70 |
+
"nuisance_snapshots": int(truth.nuisance_type.fillna("").ne("").sum()),
|
| 71 |
+
"ood_snapshots": int(truth.ood_operational.sum()),
|
| 72 |
+
"waveform_windows": {str(k): int(v // 3) for k, v in wave.waveform_duration_s.value_counts().sort_index().items()},
|
| 73 |
+
"storage_roles": {str(k): int(v // 3) for k, v in wave.waveform_storage_mode.value_counts().items()},
|
| 74 |
+
"stored_waveform_policy": config["stored_waveform_policy"],
|
| 75 |
+
"ood_episodes": config["ood_episodes"],
|
| 76 |
+
"validation_ok": validation["ok"], "strict_validation_ok": validation["strict_ok"],
|
| 77 |
+
"validation_warnings": sorted({i["code"] for i in validation["issues"] if i["severity"] == "warning"}),
|
| 78 |
+
}
|
| 79 |
+
if config["dataset_role"] == "controls":
|
| 80 |
+
pairs = truth.groupby("control_pair_id")
|
| 81 |
+
assert pairs.size().eq(2).all()
|
| 82 |
+
assert pairs.control_variant.nunique().eq(2).all()
|
| 83 |
+
result["control_pairs"] = len(pairs)
|
| 84 |
+
result["control_families"] = truth.drop_duplicates("control_pair_id").control_family.value_counts().to_dict()
|
| 85 |
+
return result, truth, wave, root
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
def audit(deep=False):
|
| 89 |
+
archives, source_truth, source_wave = [], None, None
|
| 90 |
+
for filename in ("DRMHB-compact.vibframe.zip", "DRMHB-compact-controls.vibframe.zip"):
|
| 91 |
+
summary, truth, wave, root = archive_summary(ROOT / "data" / filename)
|
| 92 |
+
archives.append(summary)
|
| 93 |
+
if summary["dataset_role"] == "campaign":
|
| 94 |
+
source_truth, source_wave, campaign_root = truth, wave, root
|
| 95 |
+
derivatives, signatures = [], []
|
| 96 |
+
with zipfile.ZipFile(ROOT / archives[0]["path"]) as archive:
|
| 97 |
+
for suffix in ("raw", "features"):
|
| 98 |
+
path = ROOT / "derived" / f"DRMHB-compact.v0.3.0.{suffix}.h5ad"
|
| 99 |
+
validation = require_complete_drmhb(path)
|
| 100 |
+
counts, inventory = preservation_signature(path)
|
| 101 |
+
signatures.append((counts, inventory))
|
| 102 |
+
meta = read_metadata(path)
|
| 103 |
+
gt = get_snapshot_ground_truth(path)
|
| 104 |
+
expected = source_truth.set_index(["machine_id", "snap_t"]).sort_index()
|
| 105 |
+
actual = gt.set_index(["machine_id", "snap_t"]).sort_index()
|
| 106 |
+
pd.testing.assert_index_equal(expected.index, actual.index)
|
| 107 |
+
for column in ("split", "acquisition_kind", "fault_present", "ood_operational", "waveform_rms_h"):
|
| 108 |
+
pd.testing.assert_series_equal(expected[column], actual[column], check_dtype=False)
|
| 109 |
+
assert counts["waveform_samples"] == archives[0]["waveform_samples"]
|
| 110 |
+
assert counts["spectrum_samples"] == archives[0]["spectral_samples"]
|
| 111 |
+
assert gt.index.equals(meta["obs"].index)
|
| 112 |
+
for row in inventory.itertuples():
|
| 113 |
+
original = archive.read(campaign_root + "/" + row.path)
|
| 114 |
+
assert len(original) == row.size_bytes
|
| 115 |
+
assert hashlib.sha256(original).hexdigest() == row.sha256
|
| 116 |
+
assert read_evaluation_file(path, row.path, source=row.source) == original
|
| 117 |
+
with h5py.File(path, "r") as handle:
|
| 118 |
+
lengths = handle["obsm/raw_waveforms_lengths"][:]
|
| 119 |
+
expected_lengths = source_wave.groupby(["machine_id", "snap_t"]).waveform_n_samples.first()
|
| 120 |
+
row_keys = pd.MultiIndex.from_frame(meta["obs"][["machine", "snap_t"]])
|
| 121 |
+
want = expected_lengths.reindex(row_keys).to_numpy()
|
| 122 |
+
assert (lengths > 0).sum(axis=1).tolist() == [3] * len(want)
|
| 123 |
+
assert np.array_equal(lengths.max(axis=1), want)
|
| 124 |
+
derivatives.append({"path": str(path.relative_to(ROOT)), "size_bytes": path.stat().st_size,
|
| 125 |
+
"shape": list(meta["shape"]), "counts": counts,
|
| 126 |
+
"evaluation_files": len(inventory), "evaluation_bytes": int(inventory.size_bytes.sum()),
|
| 127 |
+
"source_sidecar_bytes_verified": True, "validation": validation})
|
| 128 |
+
assert signatures[0][0] == signatures[1][0]
|
| 129 |
+
pd.testing.assert_frame_equal(signatures[0][1], signatures[1][1])
|
| 130 |
+
if deep:
|
| 131 |
+
with h5py.File(ROOT / derivatives[0]["path"], "r") as base, h5py.File(ROOT / derivatives[1]["path"], "r") as features:
|
| 132 |
+
def compare(name, obj):
|
| 133 |
+
if not name.startswith("raw_") or not isinstance(obj, h5py.Dataset):
|
| 134 |
+
return
|
| 135 |
+
other = features["obsm/" + name]
|
| 136 |
+
assert obj.shape == other.shape and obj.dtype == other.dtype
|
| 137 |
+
# At most 32 MiB per input for the large one-dimensional buffers.
|
| 138 |
+
block = max(1, 32 * 1024**2 // max(obj.dtype.itemsize, 1) // int(np.prod(obj.shape[1:])))
|
| 139 |
+
for start in range(0, obj.shape[0], block):
|
| 140 |
+
assert np.array_equal(obj[start:start + block], other[start:start + block], equal_nan=True), name
|
| 141 |
+
base["obsm"].visititems(compare)
|
| 142 |
+
return {"checked_at_utc": datetime.now(timezone.utc).isoformat(), "archives": archives,
|
| 143 |
+
"derivatives": derivatives, "all_raw_buffers_identical_base_vs_features": deep,
|
| 144 |
+
"scope": "ZIP identities, generation/validation reports, all construction sidecars, all archived H5AD annotation bytes, snapshot joins and all waveform lengths; optional complete base/feature raw-buffer comparison. No re-synthesis or independent physical-model validation."}
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
if __name__ == "__main__":
|
| 148 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 149 |
+
parser.add_argument("--deep", action="store_true")
|
| 150 |
+
args = parser.parse_args()
|
| 151 |
+
result = audit(args.deep)
|
| 152 |
+
output = ROOT / "docs/provenance/current_dataset.json"
|
| 153 |
+
output.parent.mkdir(parents=True, exist_ok=True)
|
| 154 |
+
output.write_text(json.dumps(result, indent=2) + "\n")
|
| 155 |
+
print(f"Verified current ZIPs and derivatives: {output}")
|
tools/build_report.py
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Build the multi-file LaTeX report; optionally promote a complete EDA run."""
|
| 2 |
+
from __future__ import annotations
|
| 3 |
+
|
| 4 |
+
import argparse
|
| 5 |
+
import hashlib
|
| 6 |
+
import json
|
| 7 |
+
import re
|
| 8 |
+
import shutil
|
| 9 |
+
import subprocess
|
| 10 |
+
import tempfile
|
| 11 |
+
from pathlib import Path
|
| 12 |
+
|
| 13 |
+
import pandas as pd
|
| 14 |
+
|
| 15 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def digest(path):
|
| 19 |
+
return hashlib.sha256(path.read_bytes()).hexdigest()
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def refresh_assets():
|
| 23 |
+
notebook = ROOT / "notebooks/DRMHB_EDA.ipynb"
|
| 24 |
+
nb = json.loads(notebook.read_text())
|
| 25 |
+
code = [c for c in nb["cells"] if c["cell_type"] == "code" and "".join(c["source"]).strip()]
|
| 26 |
+
counts = [c.get("execution_count") for c in code]
|
| 27 |
+
if any(v is None for v in counts) or counts != list(range(counts[0], counts[0] + len(counts))):
|
| 28 |
+
raise RuntimeError("Promote a complete, sequential notebook execution")
|
| 29 |
+
if any(o.get("output_type") == "error" for c in code for o in c.get("outputs", [])):
|
| 30 |
+
raise RuntimeError("Notebook contains execution errors")
|
| 31 |
+
audit = json.loads((ROOT / "docs/provenance/current_dataset.json").read_text())
|
| 32 |
+
for entry in audit["archives"] + audit["derivatives"]:
|
| 33 |
+
if (ROOT / entry["path"]).stat().st_size != entry["size_bytes"]:
|
| 34 |
+
raise RuntimeError("Dataset changed since audit: " + entry["path"])
|
| 35 |
+
nb["metadata"]["drmhb_provenance"] = {
|
| 36 |
+
"execution_status": "complete_current_campaign_execution",
|
| 37 |
+
"dataset_generator_version": "2.6.0",
|
| 38 |
+
"workflow_package_version": "0.3.0",
|
| 39 |
+
"source_archive": audit["archives"][0]["path"],
|
| 40 |
+
"source_archive_sha256": audit["archives"][0]["sha256"],
|
| 41 |
+
"dataset_audit": "docs/provenance/current_dataset.json",
|
| 42 |
+
"note": "All code cells executed sequentially without errors; complete current EDA promoted to the report.",
|
| 43 |
+
}
|
| 44 |
+
notebook.write_text(json.dumps(nb, ensure_ascii=False, indent=1) + "\n")
|
| 45 |
+
source = ROOT / "derived/eda_v0.3.0"
|
| 46 |
+
manifest = pd.read_csv(source / "figures/manifest.csv").set_index("slug")
|
| 47 |
+
tex = (ROOT / "latexdocs/DRMHB.tex").read_text()
|
| 48 |
+
slugs = re.findall(r"\\edaplot\{[^}]+\}\{([^}]+)\}", tex)
|
| 49 |
+
records = []
|
| 50 |
+
for slug in slugs:
|
| 51 |
+
row = manifest.loc[slug]
|
| 52 |
+
if row["package_version"] != "0.3.0" or Path(row["source_vibframe"]).name != "DRMHB-compact.vibframe.zip":
|
| 53 |
+
raise RuntimeError("Unexpected EDA source: " + slug)
|
| 54 |
+
origin = ROOT / row["png"]
|
| 55 |
+
target = ROOT / "latexdocs/figures/eda" / origin.name
|
| 56 |
+
shutil.copyfile(origin, target)
|
| 57 |
+
cell = next((i for i, c in enumerate(nb["cells"]) if c["cell_type"] == "code" and f'"{slug}"' in "".join(c["source"])), None)
|
| 58 |
+
if cell is None:
|
| 59 |
+
# Mechanism-specific chronology plots use a dynamic fault-type slug.
|
| 60 |
+
cell = next(i for i, c in enumerate(nb["cells"]) if "fault_chronology_" in "".join(c["source"]))
|
| 61 |
+
records.append({"slug": slug, "path": str(target.relative_to(ROOT)), "sha256": digest(target),
|
| 62 |
+
"notebook_cell": cell, "execution_count": nb["cells"][cell]["execution_count"],
|
| 63 |
+
"question": row["question"], "origin": row["png"]})
|
| 64 |
+
for name in ("baseline_ml_summary", "baseline_detection_delay"):
|
| 65 |
+
origin = source / "tables" / (name + ".tex")
|
| 66 |
+
target = ROOT / "latexdocs" / origin.name
|
| 67 |
+
# Preserve the report's narrow headers while updating all numerical rows.
|
| 68 |
+
old, new = target.read_text(), origin.read_text()
|
| 69 |
+
rows = new.split("\\midrule\n", 1)[1].split("\\bottomrule", 1)[0]
|
| 70 |
+
target.write_text(old.split("\\midrule\n", 1)[0] + "\\midrule\n" + rows + "\\bottomrule" + old.split("\\bottomrule", 1)[1])
|
| 71 |
+
records.append({"slug": name, "path": str(target.relative_to(ROOT)), "sha256": digest(target),
|
| 72 |
+
"origin": str(origin.relative_to(ROOT))})
|
| 73 |
+
evidence = {"dataset_generator_version": "2.6.0", "executed_conversion_version": "0.3.0",
|
| 74 |
+
"notebook": str(notebook.relative_to(ROOT)), "notebook_sha256": digest(notebook),
|
| 75 |
+
"recomputed": True, "dataset_audit": "docs/provenance/current_dataset.json",
|
| 76 |
+
"source_archives": audit["archives"], "assets": records}
|
| 77 |
+
path = ROOT / "latexdocs/provenance/eda_assets.json"
|
| 78 |
+
path.write_text(json.dumps(evidence, indent=2) + "\n")
|
| 79 |
+
print(f"Promoted {len(slugs)} figures and two baseline tables")
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
def build():
|
| 83 |
+
report = ROOT / "docs/DRMHB.pdf"
|
| 84 |
+
# A failed build must leave the previous public PDF intact.
|
| 85 |
+
with tempfile.TemporaryDirectory(prefix="drmhb-latex-") as staging:
|
| 86 |
+
result = subprocess.run(["latexmk", "-pdf", "-interaction=nonstopmode", "-halt-on-error", f"-outdir={staging}", "DRMHB.tex"],
|
| 87 |
+
cwd=ROOT / "latexdocs", stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
|
| 88 |
+
if result.returncode:
|
| 89 |
+
raise RuntimeError(result.stdout)
|
| 90 |
+
shutil.copyfile(Path(staging) / "DRMHB.log", ROOT / "docs/DRMHB.log")
|
| 91 |
+
temporary = report.with_suffix(".pdf.tmp")
|
| 92 |
+
shutil.copyfile(Path(staging) / "DRMHB.pdf", temporary)
|
| 93 |
+
temporary.replace(report)
|
| 94 |
+
inputs = list((ROOT / "latexdocs").rglob("*.tex")) + list((ROOT / "latexdocs/figures").rglob("*.png"))
|
| 95 |
+
inputs = [p for p in inputs if "provenance" not in p.parts]
|
| 96 |
+
audit = json.loads((ROOT / "docs/provenance/current_dataset.json").read_text())
|
| 97 |
+
evidence = {"dataset_generator_version": "2.6.0", "conversion_package": "vibframe-anndata==0.3.0",
|
| 98 |
+
"dataset_audit": "docs/provenance/current_dataset.json",
|
| 99 |
+
"dataset_audit_sha256": digest(ROOT / "docs/provenance/current_dataset.json"),
|
| 100 |
+
"eda_manifest_sha256": digest(ROOT / "latexdocs/provenance/eda_assets.json"),
|
| 101 |
+
"archives": audit["archives"],
|
| 102 |
+
"report": {"path": "docs/DRMHB.pdf", "size_bytes": report.stat().st_size, "sha256": digest(report)},
|
| 103 |
+
"inputs": [{"path": str(p.relative_to(ROOT)), "sha256": digest(p)} for p in sorted(inputs)],
|
| 104 |
+
"build_command": "python tools/build_report.py", "scope": "Multi-file LaTeX project, built with latexmk"}
|
| 105 |
+
(ROOT / "latexdocs/provenance/sources.json").write_text(json.dumps(evidence, indent=2) + "\n")
|
| 106 |
+
print(f"Built {report}")
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
if __name__ == "__main__":
|
| 110 |
+
parser = argparse.ArgumentParser(description=__doc__)
|
| 111 |
+
parser.add_argument("--refresh-assets", action="store_true")
|
| 112 |
+
args = parser.parse_args()
|
| 113 |
+
if args.refresh_assets:
|
| 114 |
+
refresh_assets()
|
| 115 |
+
build()
|