Couteau commited on
Commit
95dce96
·
verified ·
1 Parent(s): 4c29def

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +56 -81
README.md CHANGED
@@ -2,7 +2,7 @@
2
  license: cc-by-nc-sa-4.0
3
  language:
4
  - en
5
- pretty_name: SurvBench Order Snapshots
6
  tags:
7
  - survival-analysis
8
  - transportation
@@ -10,50 +10,40 @@ tags:
10
  - ride-pooling
11
  - jsonl
12
  configs:
13
- - config_name: all
14
  data_files:
15
  - split: train
16
- path: data/R*/*/*.jsonl
17
- - config_name: R1
18
- data_files:
19
- - split: train
20
- path: data/R1/*/*.jsonl
21
- - config_name: R2
22
- data_files:
23
- - split: train
24
- path: data/R2/*/*.jsonl
25
- - config_name: R3
26
- data_files:
27
- - split: train
28
- path: data/R3/*/*.jsonl
29
- - config_name: R4
30
- data_files:
31
- - split: train
32
- path: data/R4/*/*.jsonl
33
  ---
34
 
35
- # SurvBench Order Snapshots
36
 
37
- SurvBench Order Snapshots is an anonymized order-level temporal dataset for
38
- survival-analysis benchmarking in demand-responsive transportation. Each JSONL
39
- record represents one focal order and contains static trip attributes, terminal
40
- outcome information, and an ordered sequence of system snapshots observed before
41
- the order outcome.
42
 
43
- The dataset is intended for research on order matching, cancellation dynamics,
44
- pickup dynamics, and time-to-event modeling in ride-pooling or
45
  demand-responsive transit systems.
46
 
47
- ## Dataset Details
 
 
 
 
48
 
 
 
 
49
  - **Format:** newline-delimited JSON (`application/x-ndjson`)
50
- - **Scope:** four anonymized service regions, named `R1` to `R4`
51
- - **Organization:** records are partitioned by region and service date
52
- - **Primary record:** one order per JSONL line
53
- - **Temporal component:** nested `snapshots` sequence per order
54
  - **License:** CC BY-NC-SA 4.0
55
 
56
- ## Repository Structure
57
 
58
  ```text
59
  README.md
@@ -63,68 +53,57 @@ checksums.sha256
63
  sample/
64
  example_record.json
65
  sample_records.jsonl
66
- data/
67
- R1/YYYY-MM-DD/order_snapshots_R1_YYYY-MM-DD.jsonl
68
- R2/YYYY-MM-DD/order_snapshots_R2_YYYY-MM-DD.jsonl
69
- R3/YYYY-MM-DD/order_snapshots_R3_YYYY-MM-DD.jsonl
70
- R4/YYYY-MM-DD/order_snapshots_R4_YYYY-MM-DD.jsonl
71
  ```
72
 
73
- Large source files may be split by line into
74
- `order_snapshots_<region>_<date>_part-NNN.jsonl`. File parts preserve complete
75
- JSONL records; no JSON object is split across files.
76
-
77
- ## Data Fields
78
-
79
- Each top-level record includes:
80
-
81
- - anonymized order and region identifiers
82
- - passenger count
83
- - pickup and dropoff coordinates in standardized planar coordinates
84
- - terminal outcome type and timestamp
85
- - an ordered `snapshots` array
86
-
87
- Each snapshot includes the focal order state, active surrounding orders,
88
- available vehicles, and anonymized matched vehicle information when applicable.
89
- See `SCHEMA.md` for field-level documentation.
90
 
91
  ## Loading
92
 
93
- The files can be read directly as JSONL. For example:
94
-
95
  ```python
96
- import json
97
- from pathlib import Path
98
 
99
- path = Path("data/R1/2025-12-22/order_snapshots_R1_2025-12-22.jsonl")
100
- with path.open("r", encoding="utf-8") as f:
101
- first_record = json.loads(next(f))
102
  ```
103
 
104
- With Hugging Face Datasets:
105
 
106
  ```python
107
  from datasets import load_dataset
108
 
109
- dataset = load_dataset(
110
  "json",
111
- data_files="data/R1/*/*.jsonl",
112
  split="train",
 
113
  )
114
  ```
115
 
116
- Use streaming mode when reading many files or the full dataset:
117
 
118
- ```python
119
- from datasets import load_dataset
120
 
121
- dataset = load_dataset(
122
- "json",
123
- data_files="data/R*/*/*.jsonl",
124
- split="train",
125
- streaming=True,
126
- )
127
- ```
 
 
 
 
 
 
 
 
 
 
128
 
129
  ## Anonymization
130
 
@@ -144,13 +123,9 @@ benchmark features.
144
 
145
  Coordinates are standardized planar coordinates, not raw latitude/longitude.
146
 
147
- ## Metadata and Integrity
148
-
149
- - `SCHEMA.md` describes the record fields.
150
- - `croissant.jsonld` provides MLCommons Croissant metadata.
151
- - `checksums.sha256` contains SHA256 checksums for release files.
152
 
153
- To verify files after download:
154
 
155
  ```bash
156
  sha256sum -c checksums.sha256
 
2
  license: cc-by-nc-sa-4.0
3
  language:
4
  - en
5
+ pretty_name: SurvCancel
6
  tags:
7
  - survival-analysis
8
  - transportation
 
10
  - ride-pooling
11
  - jsonl
12
  configs:
13
+ - config_name: default
14
  data_files:
15
  - split: train
16
+ path: train-*.jsonl
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  ---
18
 
19
+ # SurvCancel
20
 
21
+ SurvCancel is an anonymized order-level temporal dataset for benchmarking
22
+ survival-analysis models in demand-responsive transportation. Each JSONL record
23
+ represents one focal order and contains static trip attributes, terminal outcome
24
+ information, and an ordered sequence of system snapshots observed before the
25
+ order outcome.
26
 
27
+ The dataset is designed for research on cancellation modeling, order matching,
28
+ pickup dynamics, and time-to-event prediction in ride-pooling or
29
  demand-responsive transit systems.
30
 
31
+ This Hugging Face release is intentionally flat: each public region is stored
32
+ in one JSONL shard, and all region shards are exposed as a single `train`
33
+ split.
34
+
35
+ ## Dataset Summary
36
 
37
+ - **Task type:** survival analysis, time-to-event modeling, cancellation
38
+ modeling
39
+ - **Data type:** anonymized order-level temporal snapshots
40
  - **Format:** newline-delimited JSON (`application/x-ndjson`)
41
+ - **Split:** `train`
42
+ - **Region shards:** `train-R1.jsonl`, `train-R2.jsonl`, `train-R3.jsonl`,
43
+ `train-R4.jsonl`
 
44
  - **License:** CC BY-NC-SA 4.0
45
 
46
+ ## Files
47
 
48
  ```text
49
  README.md
 
53
  sample/
54
  example_record.json
55
  sample_records.jsonl
56
+ train-R1.jsonl
57
+ train-R2.jsonl
58
+ train-R3.jsonl
59
+ train-R4.jsonl
 
60
  ```
61
 
62
+ `sample/example_record.json` and `sample/sample_records.jsonl` are provided for
63
+ quick inspection. They are not part of the default Hugging Face dataset split.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
  ## Loading
66
 
 
 
67
  ```python
68
+ from datasets import load_dataset
 
69
 
70
+ dataset = load_dataset("Couteau/SurvCancel", split="train", streaming=True)
 
 
71
  ```
72
 
73
+ To load one region directly:
74
 
75
  ```python
76
  from datasets import load_dataset
77
 
78
+ r1 = load_dataset(
79
  "json",
80
+ data_files="hf://datasets/Couteau/SurvCancel/train-R1.jsonl",
81
  split="train",
82
+ streaming=True,
83
  )
84
  ```
85
 
86
+ ## Data Structure
87
 
88
+ Each top-level record includes:
 
89
 
90
+ - anonymized order and region identifiers
91
+ - passenger count
92
+ - pickup and dropoff coordinates in standardized planar coordinates
93
+ - terminal outcome type and timestamp
94
+ - an ordered `snapshots` array
95
+
96
+ Each snapshot includes the focal order state, active surrounding orders,
97
+ available vehicles, and anonymized matched vehicle information when applicable.
98
+ See `SCHEMA.md` for field-level documentation.
99
+
100
+ ## Labels and Outcomes
101
+
102
+ The terminal outcome is stored in `end_type`. Typical values include completed
103
+ orders and pre-match or post-match cancellations. `end_time` stores the terminal
104
+ timestamp for the focal order. Users can construct survival targets from the
105
+ snapshot timeline and terminal outcome fields according to their experimental
106
+ setup.
107
 
108
  ## Anonymization
109
 
 
123
 
124
  Coordinates are standardized planar coordinates, not raw latitude/longitude.
125
 
126
+ ## Integrity
 
 
 
 
127
 
128
+ `checksums.sha256` contains SHA256 checksums for release files.
129
 
130
  ```bash
131
  sha256sum -c checksums.sha256