Datasets:
Add/update forecasting bootstrap reference: SCHEMA.md
Browse files
forecasting/bootstrap/SCHEMA.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Forecasting bootstrap reference — schema
|
| 2 |
+
|
| 3 |
+
The Track-3 bootstrap reference is two files:
|
| 4 |
+
|
| 5 |
+
```
|
| 6 |
+
forecasting/bootstrap/draws.parquet # zstd
|
| 7 |
+
forecasting/bootstrap/draws.meta.json # provenance sidecar
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
## `draws.parquet`
|
| 11 |
+
|
| 12 |
+
One row per `(reduction, model, scope, metric, draw)` — a single long frame
|
| 13 |
+
holding the per-draw values for all three reductions.
|
| 14 |
+
|
| 15 |
+
| column | type | description |
|
| 16 |
+
|---|---|---|
|
| 17 |
+
| `reduction` | string (dict) | which reduction the row belongs to: `skill`, `rank`, or `fairness` |
|
| 18 |
+
| `model` | string (dict) | method identifier (10 values; see `draws.meta.json:methods`) |
|
| 19 |
+
| `scope` | string (dict) | the headline scope (see below) |
|
| 20 |
+
| `metric` | string (dict) | scored metric for `rank` rows (`mae` / `auroc` / `overall`); empty `""` for `skill` and `fairness` |
|
| 21 |
+
| `draw` | int32 | bootstrap-draw index in `[0, n_boot)` |
|
| 22 |
+
| `value` | float32 | the per-draw value of this reduction for `(model, scope[, metric])` |
|
| 23 |
+
|
| 24 |
+
### `scope` values by reduction
|
| 25 |
+
|
| 26 |
+
- **skill**: `channel_0_score`..`channel_18_score`, `sleep_score`, `workout_score`,
|
| 27 |
+
`activity_score`, `physiology_score`, `overall_score`.
|
| 28 |
+
- **rank**: `channel_<i>`, `sleep`, `workout`, `activity`, `physiology`, `overall`
|
| 29 |
+
(paired with `metric` ∈ `mae` / `auroc` / `overall`).
|
| 30 |
+
- **fairness**: `age_group`, `sex`, `overall`, the 4 sensor categories
|
| 31 |
+
(`activity` / `physiology` / `sleep` / `workout`), and `channel_<i>`.
|
| 32 |
+
|
| 33 |
+
### `value` semantics
|
| 34 |
+
|
| 35 |
+
- **skill** — paired skill score `1 − exp(mean_task log R)` vs `seasonal_naive`,
|
| 36 |
+
per draw (resampled-user cohort). `R` is the clipped per-task error ratio;
|
| 37 |
+
continuous error = MAE, binary error = `max(1 − AUROC, 0.005)`.
|
| 38 |
+
- **rank** — cross-method average rank for the draw (lower error → rank 1),
|
| 39 |
+
meaned over the resampled cohort.
|
| 40 |
+
- **fairness** — MAPD disparity-ratio fair skill score for the draw:
|
| 41 |
+
per-task disparity `D = mean(|E_g − E_g'|)` over subgroup pairs, ratio vs the
|
| 42 |
+
baseline's `D`, clipped, geomean-averaged across tasks (category-balanced),
|
| 43 |
+
macro-averaged across attributes.
|
| 44 |
+
|
| 45 |
+
Resamples are **paired** across methods (one shared `boot_idx` matrix, `seed=42`),
|
| 46 |
+
so per-draw cross-method comparisons (skill ratios, ranks) are valid.
|
| 47 |
+
|
| 48 |
+
## `draws.meta.json`
|
| 49 |
+
|
| 50 |
+
```jsonc
|
| 51 |
+
{
|
| 52 |
+
"n_boot": 1000,
|
| 53 |
+
"seed": 42,
|
| 54 |
+
"ci_level": 0.95,
|
| 55 |
+
"splits": ["test"],
|
| 56 |
+
"baseline": "seasonal_naive",
|
| 57 |
+
"methods": ["seasonal_naive", "autoARIMA", ...], // 10 entries
|
| 58 |
+
"continuous_metrics": ["mae"],
|
| 59 |
+
"binary_metrics": ["auroc"],
|
| 60 |
+
"age_bins": [18, 30, 40, 50, 60],
|
| 61 |
+
"reductions": ["skill", "rank", "fairness"],
|
| 62 |
+
"within_user_aggregation": "micro",
|
| 63 |
+
"aggregation_unit": "user",
|
| 64 |
+
"n_rows": 0,
|
| 65 |
+
"git_commit": "...",
|
| 66 |
+
"timestamp": "..."
|
| 67 |
+
}
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## Conventions
|
| 71 |
+
|
| 72 |
+
- Evaluated against the canonical split `sharable_users_seed42_2026` (`test`).
|
| 73 |
+
- Track-3 baseline for skill / fairness: `seasonal_naive`.
|
| 74 |
+
- Fairness disparity primitive: **MAPD** (mean absolute pairwise difference);
|
| 75 |
+
for a 2-level attribute (`sex`) this equals the historical max-min.
|
| 76 |
+
- Format: single Parquet, dictionary-encoded categoricals, `float32` value,
|
| 77 |
+
`int32` draw index, `zstd` compression.
|
| 78 |
+
|
| 79 |
+
## Tracks
|
| 80 |
+
|
| 81 |
+
| dir | track | status |
|
| 82 |
+
|---|---|---|
|
| 83 |
+
| `imputation/bootstrap/` | Track 2 — Imputation | live |
|
| 84 |
+
| `forecasting/bootstrap/` | Track 3 — Forecasting (above) | live |
|
| 85 |
+
| `downstream/bootstrap/` | Track 1 — Outcome Prediction | added later |
|