Tfty jinyan218 commited on
Commit
d97045a
·
0 Parent(s):

Duplicate from Cainiao-AI/LaDe-P

Browse files

Co-authored-by: LJH <jinyan218@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
13
+ *.model filter=lfs diff=lfs merge=lfs -text
14
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
15
+ *.npy filter=lfs diff=lfs merge=lfs -text
16
+ *.npz filter=lfs diff=lfs merge=lfs -text
17
+ *.onnx filter=lfs diff=lfs merge=lfs -text
18
+ *.ot filter=lfs diff=lfs merge=lfs -text
19
+ *.parquet filter=lfs diff=lfs merge=lfs -text
20
+ *.pb filter=lfs diff=lfs merge=lfs -text
21
+ *.pickle filter=lfs diff=lfs merge=lfs -text
22
+ *.pkl filter=lfs diff=lfs merge=lfs -text
23
+ *.pt filter=lfs diff=lfs merge=lfs -text
24
+ *.pth filter=lfs diff=lfs merge=lfs -text
25
+ *.rar filter=lfs diff=lfs merge=lfs -text
26
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
27
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar filter=lfs diff=lfs merge=lfs -text
30
+ *.tflite filter=lfs diff=lfs merge=lfs -text
31
+ *.tgz filter=lfs diff=lfs merge=lfs -text
32
+ *.wasm filter=lfs diff=lfs merge=lfs -text
33
+ *.xz filter=lfs diff=lfs merge=lfs -text
34
+ *.zip filter=lfs diff=lfs merge=lfs -text
35
+ *.zst filter=lfs diff=lfs merge=lfs -text
36
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
37
+ # Audio files - uncompressed
38
+ *.pcm filter=lfs diff=lfs merge=lfs -text
39
+ *.sam filter=lfs diff=lfs merge=lfs -text
40
+ *.raw filter=lfs diff=lfs merge=lfs -text
41
+ # Audio files - compressed
42
+ *.aac filter=lfs diff=lfs merge=lfs -text
43
+ *.flac filter=lfs diff=lfs merge=lfs -text
44
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
45
+ *.ogg filter=lfs diff=lfs merge=lfs -text
46
+ *.wav filter=lfs diff=lfs merge=lfs -text
47
+ # Image files - uncompressed
48
+ *.bmp filter=lfs diff=lfs merge=lfs -text
49
+ *.gif filter=lfs diff=lfs merge=lfs -text
50
+ *.png filter=lfs diff=lfs merge=lfs -text
51
+ *.tiff filter=lfs diff=lfs merge=lfs -text
52
+ # Image files - compressed
53
+ *.jpg filter=lfs diff=lfs merge=lfs -text
54
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
55
+ *.webp filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - Spatial-Temporal
5
+ - Graph
6
+ - Logistic
7
+ size_categories:
8
+ - 10M<n<100M
9
+ dataset_info:
10
+ features:
11
+ - name: order_id
12
+ dtype: int64
13
+ - name: region_id
14
+ dtype: int64
15
+ - name: city
16
+ dtype: string
17
+ - name: courier_id
18
+ dtype: int64
19
+ - name: accept_time
20
+ dtype: string
21
+ - name: time_window_start
22
+ dtype: string
23
+ - name: time_window_end
24
+ dtype: string
25
+ - name: lng
26
+ dtype: float64
27
+ - name: lat
28
+ dtype: float64
29
+ - name: aoi_id
30
+ dtype: int64
31
+ - name: aoi_type
32
+ dtype: int64
33
+ - name: pickup_time
34
+ dtype: string
35
+ - name: pickup_gps_time
36
+ dtype: string
37
+ - name: pickup_gps_lng
38
+ dtype: float64
39
+ - name: pickup_gps_lat
40
+ dtype: float64
41
+ - name: accept_gps_time
42
+ dtype: string
43
+ - name: accept_gps_lng
44
+ dtype: float64
45
+ - name: accept_gps_lat
46
+ dtype: float64
47
+ - name: ds
48
+ dtype: int64
49
+ splits:
50
+ - name: pickup_jl
51
+ num_bytes: 54225579
52
+ num_examples: 261801
53
+ - name: pickup_cq
54
+ num_bytes: 243174931
55
+ num_examples: 1172703
56
+ - name: pickup_yt
57
+ num_bytes: 237146694
58
+ num_examples: 1146781
59
+ - name: pickup_sh
60
+ num_bytes: 293399390
61
+ num_examples: 1424406
62
+ - name: pickup_hz
63
+ num_bytes: 436103754
64
+ num_examples: 2130456
65
+ download_size: 443251368
66
+ dataset_size: 1264050348
67
+ ---
68
+ # 1. About Dataset
69
+ **LaDe** is a publicly available last-mile delivery dataset with millions of packages from industry.
70
+ It has three unique characteristics: (1) Large-scale. It involves 10,677k packages of 21k couriers over 6 months of real-world operation.
71
+ (2) Comprehensive information, it offers original package information, such as its location and time requirements, as well as task-event information, which records when and where the courier is while events such as task-accept and task-finish events happen.
72
+ (3) Diversity: the dataset includes data from various scenarios, such as package pick-up and delivery, and from multiple cities, each with its unique spatio-temporal patterns due to their distinct characteristics such as populations.
73
+
74
+ If you use this dataset for your research, please cite this paper: {xxx}
75
+
76
+ # 2. Download
77
+ [LaDe](https://huggingface.co/datasets/Cainiao-AI/LaDe) is composed of two subdatasets: i) [LaDe-D](https://huggingface.co/datasets/Cainiao-AI/LaDe-D), which comes from the package delivery scenario.
78
+ ii) [LaDe-P](https://huggingface.co/datasets/Cainiao-AI/LaDe-P), which comes from the package pickup scenario. To facilitate the utilization of the dataset, each sub-dataset is presented in CSV format.
79
+
80
+ LaDe-P is the second subdataset from [LaDe](https://huggingface.co/datasets/Cainiao-AI/LaDe)
81
+ LaDe can be used for research purposes. Before you download the dataset, please read these terms. And [Code link](https://github.com/wenhaomin/LaDe). Then put the data into "./data/raw/".
82
+ The structure of "./data/raw/" should be like:
83
+ ```
84
+ * ./data/raw/
85
+ * pickup
86
+ * pickup_sh.csv
87
+ * ...
88
+ ```
89
+
90
+ LaDe-P contains files, with each representing the data from a specific city, the detail of each city can be find in the following table.
91
+
92
+
93
+ | City | Description |
94
+ |------------|----------------------------------------------------------------------------------------------|
95
+ | Shanghai | One of the most prosperous cities in China, with a large number of orders per day. |
96
+ | Hangzhou | A big city with well-developed online e-commerce and a large number of orders per day. |
97
+ | Chongqing | A big city with complicated road conditions in China, with a large number of orders. |
98
+ | Jilin | A middle-size city in China, with a small number of orders each day. |
99
+ | Yantai | A small city in China, with a small number of orders every day. |
100
+
101
+
102
+ # 3. Description
103
+ Below is the detailed field of each LaDe-P.
104
+
105
+ | Data field | Description | Unit/format |
106
+ |----------------------------|----------------------------------------------|--------------|
107
+ | **Package information** | | |
108
+ | package_id | Unique identifier of each package | Id |
109
+ | time_window_start | Start of the required time window | Time |
110
+ | time_window_end | End of the required time window | Time |
111
+ | **Stop information** | | |
112
+ | lng/lat | Coordinates of each stop | Float |
113
+ | city | City | String |
114
+ | region_id | Id of the Region | String |
115
+ | aoi_id | Id of the AOI (Area of Interest) | Id |
116
+ | aoi_type | Type of the AOI | Categorical |
117
+ | **Courier Information** | | |
118
+ | courier_id | Id of the courier | Id |
119
+ | **Task-event Information** | | |
120
+ | accept_time | The time when the courier accepts the task | Time |
121
+ | accept_gps_time | The time of the GPS point closest to accept time | Time |
122
+ | accept_gps_lng/lat | Coordinates when the courier accepts the task | Float |
123
+ | pickup_time | The time when the courier picks up the task | Time |
124
+ | pickup_gps_time | The time of the GPS point closest to pickup_time | Time |
125
+ | pickup_gps_lng/lat | Coordinates when the courier picks up the task | Float |
126
+ | **Context information** | | |
127
+ | ds | The date of the package pickup | Date |
128
+
129
+
130
+ # 4. Leaderboard
131
+ Blow shows the performance of different methods in Shanghai.
132
+ ## 4.1 Route Prediction
133
+
134
+ Experimental results of route prediction. We use bold and underlined fonts to denote the best and runner-up model, respectively.
135
+
136
+ | Method | HR@3 | KRC | LSD | ED |
137
+ |--------------|--------------|--------------|-------------|-------------|
138
+ | TimeGreedy | 57.65 | 31.81 | 5.54 | 2.15 |
139
+ | DistanceGreedy | 60.77 | 39.81 | 5.54 | 2.15 |
140
+ | OR-Tools | 66.21 | 47.60 | 4.40 | 1.81 |
141
+ | LightGBM | 73.76 | 55.71 | 3.01 | 1.84 |
142
+ | FDNET | 73.27 ± 0.47 | 53.80 ± 0.58 | 3.30 ± 0.04 | 1.84 ± 0.01 |
143
+ | DeepRoute | 74.68 ± 0.07 | 56.60 ± 0.16 | 2.98 ± 0.01 | 1.79 ± 0.01 |
144
+ | Graph2Route | 74.84 ± 0.15 | 56.99 ± 0.52 | 2.86 ± 0.02 | 1.77 ± 0.01 |
145
+
146
+
147
+ ## 4.2 Estimated Time of Arrival Prediction
148
+
149
+ | Method | MAE | RMSE | ACC@30 |
150
+ | ------ |--------------|--------------|-------------|
151
+ | LightGBM | 30.99 | 35.04 | 0.59 |
152
+ | SPEED | 23.75 | 27.86 | 0.73 |
153
+ | KNN | 36.00 | 31.89 | 0.58 |
154
+ | MLP | 21.54 ± 2.20 | 25.05 ± 2.46 | 0.79 ± 0.04 |
155
+ | FDNET | 18.47 ± 0.25 | 21.44 ± 0.28 | 0.84 ± 0.01 |
156
+
157
+
158
+ ## 4.3 Spatio-temporal Graph Forecasting
159
+
160
+
161
+ | Method | MAE | RMSE |
162
+ |-------|-------------|-------------|
163
+ | HA | 4.63 | 9.91 |
164
+ | DCRNN | 3.69 ± 0.09 | 7.08 ± 0.12 |
165
+ | STGCN | 3.04 ± 0.02 | 6.42 ± 0.05 |
166
+ | GWNET | 3.16 ± 0.06 | 6.56 ± 0.11 |
167
+ | ASTGCN | 3.12 ± 0.06 | 6.48 ± 0.14 |
168
+ | MTGNN | 3.13 ± 0.04 | 6.51 ± 0.13 |
169
+ | AGCRN | 3.93 ± 0.03 | 7.99 ± 0.08 |
170
+ | STGNCDE | 3.74 ± 0.15 | 7.27 ± 0.16 |
171
+
172
+
173
+
174
+ # 5. Citation
175
+ To cite this repository:
176
+
177
+ ```shell
178
+ @software{pytorchgithub,
179
+ author = {xx},
180
+ title = {xx},
181
+ url = {xx},
182
+ version = {0.6.x},
183
+ year = {2021},
184
+ }
185
+ ```
data/pickup_cq-00000-of-00001-a172031e5392f9d3.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aaf370433a6b0f346980493c9f4d145d6feda642d492282eb0b50a0b39fc212
3
+ size 87748263
data/pickup_hz-00000-of-00001-2641abebfe50648a.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89be9318ed7a7231cc66155df351e4d01c5c998f5c9b8eb372e691943b9cffdc
3
+ size 147333101
data/pickup_jl-00000-of-00001-9b430a56a935f284.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:043bdc91ff0c5906ac810e6097407226bc2c51da68bda6f40727f57aaf2737f9
3
+ size 20772658
data/pickup_sh-00000-of-00001-79fabe8088e723a2.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2e52986c9e3f9c9b62bf966cfa54db2034337922a9b6baa2aede12a663179a2
3
+ size 98191560
data/pickup_yt-00000-of-00001-6d21a4dccd28ee03.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c0263b4f33d5c21cc057842d96d18fb893d0bf79356e6cc784edf4c27b07a21
3
+ size 89205786