YuzeBai commited on
Commit
e2032ab
·
verified ·
1 Parent(s): 6b52de4

Add/update downstream bootstrap reference: README.md

Browse files
Files changed (1) hide show
  1. downstream/bootstrap/README.md +73 -0
downstream/bootstrap/README.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Downstream bootstrap reference
2
+
3
+ This subdir holds the **Phase-1 bootstrap reference** for the Track-1 (outcome
4
+ prediction) leaderboard recompute — the long-format per-draw error frame that the
5
+ skill / rank / fairness CIs reduce from.
6
+
7
+ ## Layout
8
+
9
+ ```
10
+ downstream/bootstrap/
11
+ ├── draws.parquet # per-(method, task, subgroup, draw) error E = 1 − metric
12
+ └── draws.meta.json # provenance: seed, n_boot, methods, n_tasks, fairness attrs
13
+ ```
14
+
15
+ ## What's it for
16
+
17
+ Each row of `draws.parquet` is one bootstrap draw of one task for one method,
18
+ carrying the per-draw error `E = 1 − metric` (binary AUPRC, ordinal Spearman,
19
+ regression Pearson). Phase-2 reduces the same frame three ways, all paired vs the
20
+ `linear` baseline:
21
+
22
+ - **Skill score** `S = 1 − geomean_task(E_method / E_linear)` — domain-balanced
23
+ macro; per-(method, scope) mean / SE / percentile-CI across draws.
24
+ - **Average rank** — per-(method, scope) mean of the per-draw cross-method rank
25
+ (lower `E` → rank 1).
26
+ - **Fairness skill score** — per-attribute disparity ratio over the `age_group` /
27
+ `sex` subgroup rows, with BCa intervals.
28
+
29
+ The per-method `downstream/<method>.parquet` substrate (the raw user pairs, one level
30
+ up) is the *input* the draws were bootstrapped from; this frame is the precomputed
31
+ result so consumers need not re-run the 1000-draw paired bootstrap.
32
+
33
+ ## Provenance
34
+
35
+ Generated by `scripts/paper_results/downstream/bootstrap_downstream_draws.py` in the
36
+ code repo. The current snapshot was built with:
37
+
38
+ - `seed = 42`, `n_boot = 1000`
39
+ - `split = test`, canonical `sharable_users_seed42_2026`
40
+ - 8 methods (see `draws.meta.json:methods`), 32 tasks, baseline `linear`
41
+ - fairness attributes `age_group`, `sex`
42
+
43
+ Parity of this frame against the uploaded per-method substrate is enforced by
44
+ `scripts/paper_results/downstream/parity/parity_substrate.py` (a substrate-driven
45
+ bootstrap must reproduce these draws).
46
+
47
+ ## Loading
48
+
49
+ ```python
50
+ from huggingface_hub import hf_hub_download
51
+ import pandas as pd, json
52
+
53
+ draws_path = hf_hub_download(
54
+ "MyHeartCounts/OpenMHC-leaderboard-data",
55
+ "downstream/bootstrap/draws.parquet",
56
+ repo_type="dataset",
57
+ )
58
+ meta_path = hf_hub_download(
59
+ "MyHeartCounts/OpenMHC-leaderboard-data",
60
+ "downstream/bootstrap/draws.meta.json",
61
+ repo_type="dataset",
62
+ )
63
+ draws = pd.read_parquet(draws_path)
64
+ meta = json.loads(open(meta_path).read())
65
+ print(meta["seed"], meta["n_boot"], len(meta["methods"]))
66
+ ```
67
+
68
+ See [`SCHEMA.md`](SCHEMA.md) for the full column spec.
69
+
70
+ ## Uploaded with
71
+
72
+ `tools/upload_leaderboard_bootstrap.py --track downstream` in the
73
+ [code repo](https://github.com/AshleyLab/myheartcounts-dataset).