Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 4 new columns ({'longitude', 'index', 'sensor_id', 'latitude'}) and 3 missing columns ({'from', 'to', 'cost'}).
This happened while the csv dataset builder was generating data using
hf://datasets/MintBruce/SkyTraffic/metr/graph_sensor_locations.csv (at revision 47913928b363bc2fa83be27e54ddd048a597a991), [/tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/metr/distances_la_2012.csv (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/metr/distances_la_2012.csv), /tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/metr/graph_sensor_locations.csv (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/metr/graph_sensor_locations.csv), /tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/pems/distances_bay_2017.csv (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/pems/distances_bay_2017.csv), /tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/pems/graph_sensor_locations_bay.csv (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/pems/graph_sensor_locations_bay.csv), /tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/simbarca_upload.zip (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/simbarca_upload.zip)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1893, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2281, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2227, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
index: int64
sensor_id: int64
latitude: double
longitude: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 719
to
{'from': Value('int64'), 'to': Value('int64'), 'cost': Value('float64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1895, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 4 new columns ({'longitude', 'index', 'sensor_id', 'latitude'}) and 3 missing columns ({'from', 'to', 'cost'}).
This happened while the csv dataset builder was generating data using
hf://datasets/MintBruce/SkyTraffic/metr/graph_sensor_locations.csv (at revision 47913928b363bc2fa83be27e54ddd048a597a991), [/tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/metr/distances_la_2012.csv (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/metr/distances_la_2012.csv), /tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/metr/graph_sensor_locations.csv (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/metr/graph_sensor_locations.csv), /tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/pems/distances_bay_2017.csv (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/pems/distances_bay_2017.csv), /tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/pems/graph_sensor_locations_bay.csv (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/pems/graph_sensor_locations_bay.csv), /tmp/hf-datasets-cache/medium/datasets/16648658767813-config-parquet-and-info-MintBruce-SkyTraffic-1c2e8660/hub/datasets--MintBruce--SkyTraffic/snapshots/47913928b363bc2fa83be27e54ddd048a597a991/simbarca_upload.zip (origin=hf://datasets/MintBruce/SkyTraffic@47913928b363bc2fa83be27e54ddd048a597a991/simbarca_upload.zip)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
from int64 | to int64 | cost float64 |
|---|---|---|
1,201,054 | 1,201,054 | 0 |
1,201,054 | 1,201,066 | 2,610.9 |
1,201,054 | 1,201,076 | 2,822.7 |
1,201,054 | 1,201,087 | 2,911.5 |
1,201,054 | 1,201,100 | 7,160.1 |
1,201,054 | 1,201,112 | 2,656.5 |
1,201,054 | 1,201,118 | 3,417.2 |
1,201,054 | 1,201,125 | 3,659.9 |
1,201,054 | 1,201,145 | 6,168.4 |
1,201,054 | 1,201,159 | 2,651.8 |
1,201,054 | 1,201,171 | 4,877.2 |
1,201,054 | 1,201,185 | 3,986.6 |
1,201,054 | 1,201,197 | 9,888.2 |
1,201,054 | 1,201,211 | 4,312.1 |
1,201,054 | 1,201,217 | 8,784.5 |
1,201,054 | 1,201,222 | 5,420.8 |
1,201,054 | 1,201,240 | 7,508.1 |
1,201,054 | 1,201,254 | 6,673.6 |
1,201,054 | 1,201,283 | 6,936.2 |
1,201,054 | 1,201,292 | 10,666.6 |
1,201,054 | 1,201,298 | 7,715.9 |
1,201,054 | 1,201,315 | 9,603.6 |
1,201,054 | 1,201,333 | 8,780.4 |
1,201,054 | 1,201,365 | 9,068.4 |
1,201,054 | 1,201,399 | 10,212.2 |
1,201,054 | 1,204,577 | 9,913.7 |
1,201,054 | 1,204,607 | 8,226.6 |
1,201,054 | 1,204,621 | 7,865.3 |
1,201,054 | 1,204,632 | 10,095.2 |
1,201,054 | 1,204,638 | 9,348.8 |
1,201,054 | 1,204,643 | 7,262.5 |
1,201,054 | 1,204,650 | 6,151.5 |
1,201,054 | 1,204,665 | 5,936.1 |
1,201,054 | 1,204,688 | 5,434 |
1,201,054 | 1,204,695 | 10,204.7 |
1,201,054 | 1,204,699 | 5,485.1 |
1,201,054 | 1,204,701 | 9,984.1 |
1,201,054 | 1,204,716 | 8,306.3 |
1,201,054 | 1,204,731 | 7,385.3 |
1,201,054 | 1,204,737 | 8,030.4 |
1,201,054 | 1,204,750 | 7,660.5 |
1,201,054 | 1,204,761 | 7,157.8 |
1,201,054 | 1,204,766 | 3,625.1 |
1,201,054 | 1,204,787 | 5,548.9 |
1,201,054 | 1,204,798 | 9,895.1 |
1,201,054 | 1,204,808 | 4,653.5 |
1,201,054 | 1,204,816 | 5,891.5 |
1,201,054 | 1,204,825 | 4,876.3 |
1,201,054 | 1,204,841 | 8,901.7 |
1,201,054 | 1,204,861 | 5,145.7 |
1,201,054 | 1,204,869 | 8,432.7 |
1,201,054 | 1,204,924 | 6,652.4 |
1,201,054 | 1,204,937 | 7,021.6 |
1,201,054 | 1,204,950 | 7,949.3 |
1,201,054 | 1,204,967 | 10,005 |
1,201,054 | 1,204,982 | 9,069.6 |
1,201,054 | 1,205,012 | 9,567.2 |
1,201,054 | 1,209,059 | 3,341.3 |
1,201,054 | 1,209,070 | 8,256.7 |
1,201,054 | 1,209,076 | 5,943.5 |
1,201,054 | 1,209,091 | 5,067.5 |
1,201,054 | 1,209,092 | 4,381.5 |
1,201,054 | 1,209,161 | 4,400.3 |
1,201,054 | 1,209,162 | 5,052.4 |
1,201,054 | 1,209,176 | 1,659.2 |
1,201,054 | 1,209,178 | 3,741.1 |
1,201,054 | 1,209,189 | 5,520.1 |
1,201,054 | 1,210,599 | 9,139 |
1,201,054 | 1,210,600 | 9,049.6 |
1,201,054 | 1,210,601 | 9,437 |
1,201,054 | 1,210,609 | 7,721.6 |
1,201,054 | 1,210,610 | 7,728.8 |
1,201,054 | 1,210,618 | 8,367.1 |
1,201,054 | 1,210,728 | 10,293.3 |
1,201,054 | 1,210,729 | 9,757.5 |
1,201,054 | 1,210,736 | 10,061.1 |
1,201,054 | 1,210,737 | 9,922.3 |
1,201,054 | 1,210,745 | 10,162.5 |
1,201,054 | 1,211,247 | 10,489.7 |
1,201,054 | 1,211,266 | 10,076.6 |
1,201,054 | 1,211,276 | 9,801.1 |
1,201,054 | 1,211,653 | 9,692.2 |
1,201,054 | 1,211,663 | 9,390.2 |
1,201,054 | 1,211,682 | 8,906 |
1,201,054 | 1,211,692 | 8,349.4 |
1,201,054 | 1,211,706 | 7,994.8 |
1,201,054 | 1,211,716 | 7,877.5 |
1,201,054 | 1,211,717 | 7,177.8 |
1,201,054 | 1,211,724 | 6,533.5 |
1,201,054 | 1,211,725 | 8,518.5 |
1,201,054 | 1,211,731 | 6,025.3 |
1,201,054 | 1,211,732 | 9,025.5 |
1,201,054 | 1,211,740 | 5,569 |
1,201,054 | 1,211,741 | 9,489.5 |
1,201,054 | 1,211,750 | 5,192 |
1,201,054 | 1,211,752 | 9,864.8 |
1,201,054 | 1,211,760 | 4,450.3 |
1,201,054 | 1,211,770 | 3,833.5 |
1,201,054 | 1,211,784 | 3,193.9 |
1,201,054 | 1,211,853 | 9,480.9 |
End of preview.
SkyTraffic
This dataset repository collects traffic time-series datasets used for sky and road traffic experiments.
Files
metr-la.h5: METR-LA traffic speed dataset in HDF5 format.pems-bay.h5: PEMS-BAY traffic speed dataset in HDF5 format.simbarca_upload.zip: SimBarca simulated Barcelona traffic dataset archive from Zenodo record 17159241.metr/: METR-LA graph metadata and generated adjacency matrix.pems/: PEMS-BAY graph metadata and generated adjacency matrix.
The graph metadata directories include distance CSV files, sensor location CSV
files, sensor id lists, and adj_mx_*.pkl adjacency matrices in the format used
by DCRNN-style preprocessing.
Sources
- SimBarca: Simulated Barcelona Traffic, Zenodo record 17159241: https://zenodo.org/records/17159241
- METR-LA and PEMS-BAY are provided as local HDF5 files by the repository owner.
- METR-LA and PEMS-BAY graph metadata comes from the DCRNN sensor graph files: https://github.com/liyaguang/DCRNN/tree/master/data/sensor_graph
Usage
Download individual files with the Hugging Face CLI:
hf download MintBruce/SkyTraffic metr-la.h5 --repo-type dataset
hf download MintBruce/SkyTraffic pems-bay.h5 --repo-type dataset
hf download MintBruce/SkyTraffic metr/ --repo-type dataset
hf download MintBruce/SkyTraffic pems/ --repo-type dataset
hf download MintBruce/SkyTraffic simbarca_upload.zip --repo-type dataset
The HDF5 files can be inspected with Python packages such as h5py or pandas. The SimBarca archive should be extracted before use.
- Downloads last month
- 332