tsl-team commited on
Commit
9cb4c00
·
verified ·
1 Parent(s): cfbb702

Upload folder using huggingface_hub

Browse files
.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ .DS_Store
2
+ *.py[cod]
3
+ __pycache__/
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - no-annotation
4
+ language:
5
+ - en
6
+ license: other
7
+ pretty_name: Processed datasets for TSL
8
+ size_categories:
9
+ - 1B<n<10B
10
+ tags:
11
+ - time-series
12
+ - spatiotemporal
13
+ - traffic-forecasting
14
+ - imputation
15
+ - solar-power
16
+ - air-quality
17
+ task_categories:
18
+ - time-series-forecasting
19
+ - graph-ml
20
+ ---
21
+
22
+ # Processed datasets for TSL
23
+
24
+ This repository contains the processed data files used by the [Torch Spatiotemporal (TSL)](https://github.com/TorchSpatiotemporal/tsl) dataset classes. The files are kept with the layout expected by those classes, so they can be downloaded, unpacked, and built by TSL without an additional conversion step.
25
+
26
+ The collection is intended primarily for reproducibility studies and benchmarks in TSL. It is not a new re-release of the underlying datasets: the datasets retain the provenance and usage conditions of their original sources. Please consult the original papers and providers before redistributing or using them.
27
+
28
+ ## Contents
29
+
30
+ | Dataset | TSL class | Data | Processed size |
31
+ | --- | --- | --- | --- |
32
+ | PeMS03 | `tsl.datasets.PeMS03` | Traffic flow from 358 California sensors, sampled every 5 minutes from September–November 2018. | 26,208 × 358 × 1 |
33
+ | PeMS04 | `tsl.datasets.PeMS04` | Traffic flow, occupancy, and speed from 307 San Francisco Bay Area sensors, sampled every 5 minutes from January–February 2018. | 16,992 × 307 × 3 |
34
+ | PeMS07 | `tsl.datasets.PeMS07` | Traffic flow from 883 California sensors, sampled every 5 minutes from May–August 2017. | 28,224 × 883 × 1 |
35
+ | PeMS08 | `tsl.datasets.PeMS08` | Traffic flow, occupancy, and speed from 170 San Bernardino sensors, sampled every 5 minutes from July–August 2016. | 17,856 × 170 × 3 |
36
+ | PeMS-Bay | `tsl.datasets.PemsBay` | Traffic readings from 325 San Francisco Bay Area sensors, sampled every 5 minutes from January–June 2017. | 52,128 × 325 × 1 |
37
+ | METR-LA | `tsl.datasets.MetrLA` | Traffic readings from 207 Los Angeles loop detectors, sampled every 5 minutes from March–June 2012. | 34,272 × 207 × 1 |
38
+ | Air Quality | `tsl.datasets.AirQuality` | PM2.5 measurements from 437 stations in 43 Chinese cities, sampled hourly from May 2014–April 2015. Includes the 36-station Beijing subset. | 8,760 × 437 × 1, or 8,760 × 36 × 1 |
39
+ | LargeST | `tsl.datasets.LargeST` | Five years of California traffic readings from 8,600 sensors, sampled every 5 minutes from 2017–2021. TSL can select CA, GLA, GBA, or SD subsets and individual years. | 525,888 × 8,600 × 1 |
40
+ | PV-US | `tsl.datasets.PvUS` | Synthetic photovoltaic power production for 5,016 US plants, sampled every 10 minutes. East and west zones are provided separately. | 52,560 × 5,016 × 1 |
41
+
42
+ Dimensions above describe the main time-varying target. Some datasets also include masks, distances, locations, metadata, occupancy, speed, or adjacency information.
43
+
44
+ ## File layout
45
+
46
+ The layout is part of the interface with TSL:
47
+
48
+ ```text
49
+ air/
50
+ air_quality.zip # full437.h5 and small36.h5
51
+ traffic/
52
+ metr_la.zip # METR-LA data and sensor metadata
53
+ pems03.zip # PeMS03 data and distances
54
+ pems04.zip
55
+ pems07.zip
56
+ pems08.zip
57
+ pems_bay.zip # PeMS-Bay data and sensor metadata
58
+ large_st/
59
+ 2017/data.h5 ... 2021/data.h5
60
+ sensors.zip # adj.npz and metadata.csv
61
+ pv_us/
62
+ east.h5
63
+ west.h5
64
+ ```
65
+
66
+ The ZIP files should remain archives. They contain the raw files that the corresponding TSL class expects when it runs its `download()`/`build()` pipeline. LargeST is split by year so callers can request only the years they need.
67
+
68
+ ## Using the data with TSL
69
+
70
+ After installing TSL, extract the relevant archive into a loader root (or arrange the uncompressed files in the layout expected by the class), then pass that root to the class:
71
+
72
+ ```python
73
+ from tsl.datasets import AirQuality, LargeST, MetrLA, PeMS04, PvUS
74
+
75
+ air = AirQuality(root="/path/to/extracted/air_quality")
76
+ traffic = PeMS04(root="/path/to/extracted/pems04")
77
+ metr = MetrLA(root="/path/to/extracted/metr_la")
78
+ large = LargeST(root="/path/to/ProcessedDatasets/large_st", year=2019)
79
+ solar = PvUS(root="/path/to/ProcessedDatasets/pv_us")
80
+ ```
81
+
82
+ For an automatic download through TSL, use a TSL version whose dataset URLs point to this Hugging Face repository. The repository preserves the filenames needed by the loaders; the URL migration itself belongs in the TSL dataset class definitions.
83
+
84
+ ## Sources and related work
85
+
86
+ - PeMS03/04/07/08: CalTrans PeMS data, distributed in the benchmark setup of [Guo et al. (2021)](https://ieeexplore.ieee.org/document/9346058).
87
+ - METR-LA and PeMS-Bay: the benchmark data used by [Li et al. (2018)](https://arxiv.org/abs/1707.01926).
88
+ - Air Quality: the Urban Air project at [Microsoft Research](https://www.microsoft.com/en-us/research/project/urban-air/).
89
+ - LargeST: [Liu et al. (2023), “LargeST: A Benchmark Dataset for Large-Scale Traffic Forecasting”](https://arxiv.org/abs/2306.08259).
90
+ - PV-US: synthetic photovoltaic data from NREL’s [Solar Power Data for Integration Studies](https://www.nrel.gov/grid/solar-power-data.html).
91
+
92
+ See the docstrings of the corresponding classes in TSL for preprocessing details, missing-value handling, covariates, graph construction, and dataset-specific splitters.
93
+
94
+ ## License and responsible use
95
+
96
+ The original datasets have different providers and terms. No single license is asserted here for all files. Users are responsible for complying with the terms of the original sources and for citing the relevant source papers. The files are supplied for research, education, reproducibility, and benchmarking; they should not be treated as real-time operational data.
air/air_quality.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95d3c5cab14fc007f43c57b745a93e5f88201cbb92a755644ca9777848343317
3
+ size 31423260
large_st/2017/data.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba2841b4cb0535f60fe630833d89fd038897d179da8fd4337342830c5dc08d39
3
+ size 1197062637
large_st/2018/data.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30c7cb11349922909846252bde0ccf793453bc596e1a8eec0cd42b2b51f24eb2
3
+ size 1199931509
large_st/2019/data.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c22005165804e145b4b595c6d2aa8997c800298c96e7c1ba2506ac9c8d7f0a3d
3
+ size 1198207551
large_st/2020/data.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:839604c6ee36a719213aa6c25dfe27f2952c19f9baa9283368ca8c5108a4ec8d
3
+ size 1159277254
large_st/2021/data.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45e1ccb4e1bfff8f23dcf69d488472a6e7245ef29570c8928dfacfae9ed8b27e
3
+ size 1166347860
large_st/sensors.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:335726078a3103e61127e7816a4e4748de792b0a27739f73805341d4f8682a02
3
+ size 734063
pv_us/east.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3de085d5f6665f630d20eec668d4edde83858108ffabd9c784cd1a74e1f0ec4a
3
+ size 217910913
pv_us/west.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:524fa2247f80a1f1f371488761e2378730b29b1ca4d68604d3102634e234ee26
3
+ size 66293871
traffic/metr_la.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc249982e8ac42c8c0e21f2a1233a621eada95cee14131aaa3adce99e2efc30b
3
+ size 13078583
traffic/pems03.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c26b3339978958e5776b81c83ac47a003934c2cb74664195bda67ee43688756
3
+ size 15364778
traffic/pems04.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a183bf335d9fa0b4a6580bd60fba3375b3d56cf4953e7d13e807ff8647f68ab7
3
+ size 32607863
traffic/pems07.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd39fdb2ca046ac52bed30011cd7d895ba5b137b5610a09bd79f51855a6ceea1
3
+ size 42679254
traffic/pems08.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c137a96b8542050dab929470c311d8bae4f462981e6e569bf592f629695c9a88
3
+ size 18277942
traffic/pems_bay.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f59f810b3ed12e40514dbe30aeb916996415c442818992e0071baf7b51f84845
3
+ size 25127972