LuckyFever commited on
Commit
30ef838
·
verified ·
1 Parent(s): afdd5d7

Card: vendor datasheets and how to test against them

Browse files
Files changed (1) hide show
  1. README.md +13 -1
README.md CHANGED
@@ -56,7 +56,7 @@ masks, not from radiology reports or clinical diagnoses.
56
  | `tables/cases.parquet` | Every scan: age, sex, institute (coded `a` to `j`), scanner, kVp, study type, pathology, voxel spacing, `eligible` and `exclusion_reason` |
57
  | `tables/pipeline/` | All computed measurements: four aortic diameter methods (outer wall / lumen, axial / centerline-orthogonal) on the ground-truth (`_ref`) and model (`_pred`) masks, organ volumes, Dice per structure, Merlin embeddings |
58
  | `cohorts/<name>/` | The SlicePoint input contract (`features`, `labels`, `predictions`, `embeddings` parquet, joined on `case_id`) for three cohorts below |
59
- | `vendor_datasheet/aaa-baseline-v0.json` | Summary statistics of `vendor_train` only: what a vendor might disclose about its training data |
60
  | `manifest.json` | Counts and sha256 of every table |
61
 
62
  `case_id` is TotalSegmentator's own image id (`s0001`...), so every row traces back to
@@ -138,6 +138,18 @@ from datasets import load_dataset
138
  labels = load_dataset("slicepoint/slicepoint-aaa-ct", "labels", split="site_retrospective")
139
  ```
140
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  Run SlicePoint on the demo pair:
142
 
143
  ```bash
 
56
  | `tables/cases.parquet` | Every scan: age, sex, institute (coded `a` to `j`), scanner, kVp, study type, pathology, voxel spacing, `eligible` and `exclusion_reason` |
57
  | `tables/pipeline/` | All computed measurements: four aortic diameter methods (outer wall / lumen, axial / centerline-orthogonal) on the ground-truth (`_ref`) and model (`_pred`) masks, organ volumes, Dice per structure, Merlin embeddings |
58
  | `cohorts/<name>/` | The SlicePoint input contract (`features`, `labels`, `predictions`, `embeddings` parquet, joined on `case_id`) for three cohorts below |
59
+ | `vendor_datasheet/` | Vendor datasheets (summary statistics only, in the SlicePoint `VendorDatasheet` format): `aaa-baseline-v0.json` summarises `vendor_train`, as a vendor might disclose it; `totalsegmentator-v2-train-all.json` and `totalsegmentator-v2-train-abdominal.json` describe the TotalSegmentator model's real training data (all 1,082 training scans, every body region, and the 481 of them in this dataset), computed from the source metadata |
60
  | `manifest.json` | Counts and sha256 of every table |
61
 
62
  `case_id` is TotalSegmentator's own image id (`s0001`...), so every row traces back to
 
138
  labels = load_dataset("slicepoint/slicepoint-aaa-ct", "labels", split="site_retrospective")
139
  ```
140
 
141
+ Test a site against a vendor datasheet (summary statistics only, no vendor rows). The two
142
+ TotalSegmentator datasheets show why a datasheet's population matters: the abdominal
143
+ `site_retrospective` cohort is covered by the all-regions datasheet but distributed
144
+ differently (thinner slices there), and matches the abdominal one:
145
+
146
+ ```bash
147
+ slicepoint datasheet check --data cohorts/site_retrospective --site-id site \
148
+ --datasheet vendor_datasheet/totalsegmentator-v2-train-all.json --scope-broader
149
+ slicepoint datasheet check --data cohorts/site_retrospective --site-id site \
150
+ --datasheet vendor_datasheet/totalsegmentator-v2-train-abdominal.json
151
+ ```
152
+
153
  Run SlicePoint on the demo pair:
154
 
155
  ```bash