Datasets:
Formats:
json
Languages:
English
Size:
10K - 100K
Tags:
survival-analysis
dynamic-survival-analysis
transportation
demand-responsive-transit
ride-sharing
time-series
License:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
license: cc-by-nc-sa-4.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
-
pretty_name:
|
| 6 |
tags:
|
| 7 |
- survival-analysis
|
| 8 |
- transportation
|
|
@@ -10,50 +10,40 @@ tags:
|
|
| 10 |
- ride-pooling
|
| 11 |
- jsonl
|
| 12 |
configs:
|
| 13 |
-
- config_name:
|
| 14 |
data_files:
|
| 15 |
- split: train
|
| 16 |
-
path:
|
| 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 |
-
#
|
| 36 |
|
| 37 |
-
|
| 38 |
-
survival-analysis
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
|
| 43 |
-
The dataset is
|
| 44 |
-
pickup dynamics, and time-to-event
|
| 45 |
demand-responsive transit systems.
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
- **Format:** newline-delimited JSON (`application/x-ndjson`)
|
| 50 |
-
- **
|
| 51 |
-
- **
|
| 52 |
-
-
|
| 53 |
-
- **Temporal component:** nested `snapshots` sequence per order
|
| 54 |
- **License:** CC BY-NC-SA 4.0
|
| 55 |
|
| 56 |
-
##
|
| 57 |
|
| 58 |
```text
|
| 59 |
README.md
|
|
@@ -63,68 +53,57 @@ checksums.sha256
|
|
| 63 |
sample/
|
| 64 |
example_record.json
|
| 65 |
sample_records.jsonl
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
R4/YYYY-MM-DD/order_snapshots_R4_YYYY-MM-DD.jsonl
|
| 71 |
```
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 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
|
| 97 |
-
from pathlib import Path
|
| 98 |
|
| 99 |
-
|
| 100 |
-
with path.open("r", encoding="utf-8") as f:
|
| 101 |
-
first_record = json.loads(next(f))
|
| 102 |
```
|
| 103 |
|
| 104 |
-
|
| 105 |
|
| 106 |
```python
|
| 107 |
from datasets import load_dataset
|
| 108 |
|
| 109 |
-
|
| 110 |
"json",
|
| 111 |
-
data_files="
|
| 112 |
split="train",
|
|
|
|
| 113 |
)
|
| 114 |
```
|
| 115 |
|
| 116 |
-
|
| 117 |
|
| 118 |
-
|
| 119 |
-
from datasets import load_dataset
|
| 120 |
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 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 |
-
##
|
| 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 |
-
|
| 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
|