Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception: SplitsNotFoundError
Message: The split names could not be parsed from the dataset config.
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
for split_generator in builder._split_generators(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/tsfile/tsfile.py", line 271, in _split_generators
scan = self._scan_metadata(all_files)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/tsfile/tsfile.py", line 304, in _scan_metadata
from tsfile.constants import TIME_COLUMN, ColumnCategory
ModuleNotFoundError: No module named 'tsfile'
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 66, in compute_split_names_from_streaming_response
for split in get_dataset_split_names(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
info = get_dataset_config_info(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/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.
SafeLeak-RCD — TsFile 格式
本仓库是 SafeLeak-RCD: Residential Residual Current Decomposition Benchmark (住宅剩余电流分解基准,单相电气安全监测 / NILM)转换为 TsFile 格式的版本。
- 原始数据集:haayan/safeleak-rcd
- 论文:Physics-Regularized Conditional Flow Matching for Branch-Conditioned Residual Current Decomposition in Electrical Safety Monitoring
- 许可证:CC-BY-NC-4.0(沿用原数据集)
任务
给定:聚合剩余电流(total_residual_current)、聚合有功功率(total_power)、目标支路的功率提示,
预测该选定支路的剩余电流。单相住宅、12 条支路、1 分钟目标间隔、7 个实体级面板,
实体级互斥划分 train/validation/test = 5/1/1。
文件
转换保留了原 benchmark 的三划分结构 —— 一个 CSV 对应一个 TsFile:
| 文件 | 行数 | device(segment_id)数 |
|---|---|---|
train.tsfile |
104,835 | 15(5 实体 × {base, variant_1, variant_2}) |
validation.tsfile |
7,091 | 1 |
test.tsfile |
11,991 | 1 |
validation/test 仅含真实观测(synthetic_variant=0);train 含合成增强变体。
TsFile 结构
- **TAG(device 维度)=
segment_id**。同一实体的 base 与 2 个合成变体共用同一条时间轴, 实测(segment_id, timestamp)唯一无重复,而(entity_id, timestamp)在 train 里有约 7 万重复, 因此用segment_id作 device 才能保证每个 device 内时间单调递增。 - Time:由原始
timestamp(2024-08-01 00:10:00文本,1 分钟间隔)解析为 INT64 毫秒。 - FIELD(共 28 列):
total_residual_current,total_power(DOUBLE)branch_1_power/branch_1_current…branch_12_power/branch_12_current(共 24 列,DOUBLE)synthetic_variant(INT64,0=真实 base,1/2=合成变体)entity_id(STRING,所属实体)
转换说明
- 转换路径:
script(scripts/converters/safeleak_rcd.py),写出全程用 TsFile Java 工具的 schema 模式。 - 时间精度:
ms。 - 被丢弃的列:原始
timestamp文本列在解析为Time(INT64 毫秒)后丢弃,时间信息完整保留, 仅格式由字符串变为毫秒整数。除此之外不丢弃任何列。 - 仅转换了默认 config
benchmark_split的三个 CSV。原仓库的processed_entities/逐实体包(base/variant/combined)与 benchmark 数据重叠,本次未转换。
读取示例
from tsfile import TsFileReader
reader = TsFileReader("train.tsfile")
for name, schema in reader.get_all_table_schemas().items():
print(name, [c.get_column_name() for c in schema.get_columns()])
- Downloads last month
- 61