Liu Huayang commited on
Commit
5725e27
·
verified ·
1 Parent(s): 633e7f9

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +87 -35
README.md CHANGED
@@ -2,7 +2,7 @@
2
  license: cc-by-nc-sa-4.0
3
  language:
4
  - en
5
- pretty_name: SurvCancel
6
  tags:
7
  - survival-analysis
8
  - transportation
@@ -10,24 +10,50 @@ tags:
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 survival-analysis
22
- benchmarking in demand-responsive transportation. Each JSONL record represents
23
- 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 Hugging Face release is intentionally flat: each public region is stored in
28
- one JSONL file, and all region files are exposed as a single `train` split.
29
 
30
- ## Files
 
 
 
 
 
 
 
31
 
32
  ```text
33
  README.md
@@ -37,46 +63,68 @@ checksums.sha256
37
  sample/
38
  example_record.json
39
  sample_records.jsonl
40
- train-R1.jsonl
41
- train-R2.jsonl
42
- train-R3.jsonl
43
- train-R4.jsonl
 
44
  ```
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  ## Loading
47
 
 
 
48
  ```python
49
- from datasets import load_dataset
 
50
 
51
- dataset = load_dataset("Couteau/SurvCancel", split="train", streaming=True)
 
 
52
  ```
53
 
54
- To load one region directly:
55
 
56
  ```python
57
  from datasets import load_dataset
58
 
59
- r1 = load_dataset(
60
  "json",
61
- data_files="hf://datasets/Couteau/SurvCancel/train-R1.jsonl",
62
  split="train",
63
- streaming=True,
64
  )
65
  ```
66
 
67
- ## Data Fields
68
-
69
- Each top-level record includes:
70
 
71
- - anonymized order and region identifiers
72
- - passenger count
73
- - pickup and dropoff coordinates in standardized planar coordinates
74
- - terminal outcome type and timestamp
75
- - an ordered `snapshots` array
76
 
77
- Each snapshot includes the focal order state, active surrounding orders,
78
- available vehicles, and anonymized matched vehicle information when applicable.
79
- See `SCHEMA.md` for field-level documentation.
 
 
 
 
80
 
81
  ## Anonymization
82
 
@@ -96,9 +144,13 @@ benchmark features.
96
 
97
  Coordinates are standardized planar coordinates, not raw latitude/longitude.
98
 
99
- ## Integrity
 
 
 
 
100
 
101
- `checksums.sha256` contains SHA256 checksums for release files.
102
 
103
  ```bash
104
  sha256sum -c checksums.sha256
 
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
  - 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
  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
 
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