Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot extract the features (columns) for the split 'train' of the config 'default' of the dataset.
Error code:   FeaturesError
Exception:    UnicodeDecodeError
Message:      'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/split/first_rows.py", line 244, in compute_first_rows_from_streaming_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 4408, in _resolve_features
                  features = _infer_features_from_batch(self.with_format(None)._head())
                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2679, in _head
                  return next(iter(self.iter(batch_size=n)))
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2861, in iter
                  for key, pa_table in ex_iterable.iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2395, in _iter_arrow
                  yield from self.ex_iterable._iter_arrow()
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/csv/csv.py", line 196, in _generate_tables
                  csv_file_reader = pd.read_csv(file, iterator=True, dtype=dtype, **self.config.pd_read_csv_kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/streaming.py", line 73, in wrapper
                  return function(*args, download_config=download_config, **kwargs)
                File "/usr/local/lib/python3.14/site-packages/datasets/utils/file_utils.py", line 1279, in xpandas_read_csv
                  return pd.read_csv(xopen(filepath_or_buffer, "rb", download_config=download_config), **kwargs)
                         ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 1026, in read_csv
                  return _read(filepath_or_buffer, kwds)
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 620, in _read
                  parser = TextFileReader(filepath_or_buffer, **kwds)
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 1620, in __init__
                  self._engine = self._make_engine(f, self.engine)
                                 ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/readers.py", line 1898, in _make_engine
                  return mapping[engine](f, **self.options)
                         ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 93, in __init__
                  self._reader = parsers.TextReader(src, **kwds)
                                 ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "pandas/_libs/parsers.pyx", line 574, in pandas._libs.parsers.TextReader.__cinit__
                File "pandas/_libs/parsers.pyx", line 663, in pandas._libs.parsers.TextReader._get_header
                File "pandas/_libs/parsers.pyx", line 874, in pandas._libs.parsers.TextReader._tokenize_rows
                File "pandas/_libs/parsers.pyx", line 891, in pandas._libs.parsers.TextReader._check_tokenize_status
                File "pandas/_libs/parsers.pyx", line 2053, in pandas._libs.parsers.raise_parser_error
                File "<frozen codecs>", line 325, in decode
              UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte

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.

Processed datasets for TSL

This repository contains the processed data files used by the Torch Spatiotemporal (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.

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.

Contents

Dataset TSL class Data Processed size
PeMS03 tsl.datasets.PeMS03 Traffic flow from 358 California sensors, sampled every 5 minutes from September–November 2018. 26,208 × 358 × 1
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
PeMS07 tsl.datasets.PeMS07 Traffic flow from 883 California sensors, sampled every 5 minutes from May–August 2017. 28,224 × 883 × 1
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
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
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
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
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
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

Dimensions above describe the main time-varying target. Some datasets also include masks, distances, locations, metadata, occupancy, speed, or adjacency information.

File layout

The layout is part of the interface with TSL:

air/
  air_quality.zip               # full437.h5 and small36.h5
traffic/
  metr_la.zip                   # METR-LA data and sensor metadata
  pems03.zip                    # PeMS03 data and distances
  pems04.zip
  pems07.zip
  pems08.zip
  pems_bay.zip                  # PeMS-Bay data and sensor metadata
large_st/
  2017/data.h5 ... 2021/data.h5
  sensors.zip                   # adj.npz and metadata.csv
pv_us/
  east.h5
  west.h5

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.

Using the data with TSL

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:

from tsl.datasets import AirQuality, LargeST, MetrLA, PeMS04, PvUS

air = AirQuality(root="/path/to/extracted/air_quality")
traffic = PeMS04(root="/path/to/extracted/pems04")
metr = MetrLA(root="/path/to/extracted/metr_la")
large = LargeST(root="/path/to/ProcessedDatasets/large_st", year=2019)
solar = PvUS(root="/path/to/ProcessedDatasets/pv_us")

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.

Sources and related work

See the docstrings of the corresponding classes in TSL for preprocessing details, missing-value handling, covariates, graph construction, and dataset-specific splitters.

License and responsible use

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.

Downloads last month
-

Papers for TorchSpatiotemporal/ProcessedDatasets