Datasets:
The dataset viewer is not available for this subset.
Exception: SplitsNotFoundError
Message: The split names could not be parsed from the dataset config.
Traceback: Traceback (most recent call last):
File "tsfile/tsfile_py_cpp.pyx", line 567, in tsfile.tsfile_py_cpp.tsfile_reader_new_c
tsfile.exceptions.FileOpenError: 28:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
for split_generator in builder._split_generators(
~~~~~~~~~~~~~~~~~~~~~~~~~^
StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/tsfile/tsfile.py", line 271, in _split_generators
scan = self._scan_metadata(all_files)
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/tsfile/tsfile.py", line 318, in _scan_metadata
with self._open_reader(file) as reader:
~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/tsfile/tsfile.py", line 742, in _open_reader
return TsFileReader(file)
File "tsfile/tsfile_reader.pyx", line 323, in tsfile.tsfile_reader.TsFileReaderPy.__init__
SystemError: <class '_weakrefset.WeakSet'> returned a result with an exception set
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 68, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
~~~~~~~~~~~~~~~~~~~~~~~^
path=dataset,
^^^^^^^^^^^^^
config_name=config,
^^^^^^^^^^^^^^^^^^^
token=hf_token,
^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
path,
...<6 lines>...
**config_kwargs,
)
File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.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.
METR-LA Traffic Dataset - TsFile Conversion
This repository contains a TsFile conversion of
witgaw/METR-LA, a
Hugging Face version of the METR-LA traffic forecasting dataset commonly used
with the DCRNN model.
Modalities: Time-series.
Source Dataset
The source dataset contains pre-windowed traffic forecasting records with temporal train, validation, and test splits. Each row represents one traffic sensor at one reference timestamp. METR-LA has 207 sensors, 5-minute temporal resolution, 12 historical input steps, and a 12-step / 1-hour prediction horizon.
Original citation:
@inproceedings{li2018dcrnn_traffic,
title={Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting},
author={Li, Yaguang and Yu, Rose and Shahabi, Cyrus and Liu, Yan},
booktitle={International Conference on Learning Representations},
year={2018}
}
Converted Data
Total converted rows: 7,089,543. Total TsFile size: 619,695,942 bytes.
train: 4,962,618 rows, 207 sensors, 48 fields, 436,357,738 bytesval: 708,975 rows, 207 sensors, 48 fields, 61,623,430 bytestest: 1,417,950 rows, 207 sensors, 48 fields, 121,714,774 bytes
The source sensor graph files are mirrored under sensor_graph/.
TsFile Schema
Time: parsed from sourcet0_timestampas INT64 milliseconds.- TAG:
node_id, the traffic sensor identifier. - FIELD: all source
x_t*_d*historical input features andy_t*_d*future target features, stored as FLOAT.
Conversion Notes
- Source
t0_timestampis not stored as a field because it is encoded asTime. node_idis cast to string and declared as the TsFile TAG column.- Feature columns are preserved, but schema-unsafe offset markers are renamed.
Example renamed columns:
x_t-11_d0->x_t_minus_11_d0x_t-11_d1->x_t_minus_11_d1x_t-10_d0->x_t_minus_10_d0x_t-10_d1->x_t_minus_10_d1x_t-9_d0->x_t_minus_9_d0x_t-9_d1->x_t_minus_9_d1x_t-8_d0->x_t_minus_8_d0x_t-8_d1->x_t_minus_8_d1- ... 40 additional renamed columns
Read Example
# Read `metr_la_train.tsfile` with the Apache TsFile Java/Python SDK.
Usage
Install the Apache TsFile Python SDK (pip install tsfile) and read a converted file:
from pathlib import Path
from tsfile import TsFileReader
path = Path("metr_la_test.tsfile")
with TsFileReader(str(path)) as reader:
schemas = reader.get_all_table_schemas()
print("tables:", list(schemas))
table_name = next(iter(schemas))
table = schemas[table_name]
columns = [column.get_column_name() for column in table.get_columns()]
print("columns:", columns)
field_names = [
column.get_column_name()
for column in table.get_columns()
if column.get_column_name() not in {"Time", "time"}
]
if field_names:
with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
batch = result.read_arrow_batch()
if batch is not None:
print(batch.to_pandas().head())
- Downloads last month
- 118