hadamelino commited on
Commit
7fba1c0
·
verified ·
1 Parent(s): b2b2130

Fix task_categories + add modalities + Parquet splits for load_dataset()

Browse files
Files changed (3) hide show
  1. README.md +38 -5
  2. train.parquet +3 -0
  3. validation.parquet +3 -0
README.md CHANGED
@@ -4,8 +4,13 @@ language:
4
  - en
5
  pretty_name: CGM-JEPA Downstream Evaluation Splits
6
  task_categories:
 
7
  - feature-extraction
8
- - other
 
 
 
 
9
  tags:
10
  - continuous-glucose-monitor
11
  - cgm
@@ -14,19 +19,45 @@ tags:
14
  - metabolic-subphenotype
15
  - ogtt
16
  - healthcare
17
- - time-series-classification
 
18
  size_categories:
19
  - n<1K
 
 
 
 
 
 
 
20
  ---
21
 
22
  # CGM-JEPA Downstream Evaluation Splits
23
 
24
  Labeled cohort splits used to evaluate CGM encoders on two binary metabolic outcomes — **insulin resistance** and **β-cell dysfunction** — in the paper *CGM-JEPA: Learning Consistent Continuous Glucose Monitor Representations via Predictive Self-Supervised Pretraining*.
25
 
26
- > Downstream-only. For the unlabeled pretraining corpus (Stanford + Colas), see [`CRUISEResearchGroup/CGM-JEPA-Pretraining`](https://huggingface.co/datasets/CRUISEResearchGroup/CGM-JEPA-Pretraining). For pretrained encoder weights, see [`CRUISEResearchGroup/CGM-JEPA-Weights`](https://huggingface.co/CRUISEResearchGroup/CGM-JEPA-Weights).
27
 
28
  ## Quick start
29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  ```bash
31
  huggingface-cli download CRUISEResearchGroup/CGM-JEPA-Downstream \
32
  --repo-type dataset --local-dir Dataset_Open
@@ -43,8 +74,10 @@ python scripts/run_all_eval.py
43
 
44
  | File | Subjects | Size | Role |
45
  |---|---|---|---|
46
- | `train_split.json` | 27 | ~45 KB | **Initial cohort** — used to train linear probes in the cohort-generalization regime |
47
- | `validation_split.json` | 17 | ~146 KB | **Validation cohort** — used as the test set across all regimes and as both train and test in the home-CGM in-domain regime |
 
 
48
 
49
  The two cohorts are **subject-disjoint by construction**: subjects appearing in both upstream groups were removed from the validation cohort during preprocessing.
50
 
 
4
  - en
5
  pretty_name: CGM-JEPA Downstream Evaluation Splits
6
  task_categories:
7
+ - tabular-classification
8
  - feature-extraction
9
+ task_ids:
10
+ - binary-classification
11
+ modalities:
12
+ - Time Series
13
+ - Tabular
14
  tags:
15
  - continuous-glucose-monitor
16
  - cgm
 
19
  - metabolic-subphenotype
20
  - ogtt
21
  - healthcare
22
+ - time-series
23
+ - subject-level-classification
24
  size_categories:
25
  - n<1K
26
+ configs:
27
+ - config_name: default
28
+ data_files:
29
+ - split: train
30
+ path: train.parquet
31
+ - split: validation
32
+ path: validation.parquet
33
  ---
34
 
35
  # CGM-JEPA Downstream Evaluation Splits
36
 
37
  Labeled cohort splits used to evaluate CGM encoders on two binary metabolic outcomes — **insulin resistance** and **β-cell dysfunction** — in the paper *CGM-JEPA: Learning Consistent Continuous Glucose Monitor Representations via Predictive Self-Supervised Pretraining*.
38
 
39
+ > Downstream-only. For the unlabeled pretraining corpus (Stanford + Colas), see [`CRUISEResearchGroup/CGM-JEPA-Pretraining`](https://huggingface.co/datasets/CRUISEResearchGroup/CGM-JEPA-Pretraining). For pretrained encoder weights, see [`CRUISEResearchGroup/CGM-JEPA`](https://huggingface.co/CRUISEResearchGroup/CGM-JEPA).
40
 
41
  ## Quick start
42
 
43
+ ### Option 1 — `datasets` library (recommended for analysis / fine-tuning)
44
+
45
+ ```python
46
+ from datasets import load_dataset
47
+ ds = load_dataset("CRUISEResearchGroup/CGM-JEPA-Downstream")
48
+ # DatasetDict({
49
+ # train: Dataset({features: ['subject', 'ctru_venous', 'ctru_cgm', ...,
50
+ # 'ir_class', 'ir_regression',
51
+ # 'beta_class', 'beta_regression'],
52
+ # num_rows: 27}),
53
+ # validation: Dataset({..., num_rows: 17})
54
+ # })
55
+ ```
56
+
57
+ The two splits share a canonical 11-column schema (subject + 6 modality `Sequence(Value('float64'))` + 4 label fields). Modalities the train cohort doesn't have are `None` rather than empty — only `ctru_venous` is populated in the train split.
58
+
59
+ ### Option 2 — original nested JSON (used by the code repo's eval pipeline)
60
+
61
  ```bash
62
  huggingface-cli download CRUISEResearchGroup/CGM-JEPA-Downstream \
63
  --repo-type dataset --local-dir Dataset_Open
 
74
 
75
  | File | Subjects | Size | Role |
76
  |---|---|---|---|
77
+ | `train.parquet` | 27 | ~30 KB | **Initial cohort** in `datasets`-friendly tabular form (one row per subject). |
78
+ | `validation.parquet` | 17 | ~110 KB | **Validation cohort** in `datasets`-friendly tabular form. |
79
+ | `train_split.json` | 27 | ~45 KB | Same data as `train.parquet`, in the nested JSON layout the code repo's `data_loaders/` expects. |
80
+ | `validation_split.json` | 17 | ~146 KB | Same data as `validation.parquet`, nested JSON layout. |
81
 
82
  The two cohorts are **subject-disjoint by construction**: subjects appearing in both upstream groups were removed from the validation cohort during preprocessing.
83
 
train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:700f3feacac43e6b2a45d4acad91a66a8cdaab8ab77c034dea6cf5f89c9ebd63
3
+ size 14126
validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0698a70d6ef93bc2d280126639c1a1fe72c99342c227c0a89fa1e1d02c43e91c
3
+ size 40396