smilegeng commited on
Commit
c0af5d7
·
verified ·
1 Parent(s): 138f09c

chore: translate subset README to English and add format:tsfile tag

Browse files
Files changed (1) hide show
  1. proenfo_bull/README.md +62 -62
proenfo_bull/README.md CHANGED
@@ -1,62 +1,62 @@
1
- ---
2
- license: other
3
- task_categories:
4
- - time-series-forecasting
5
- tags:
6
- - time-series
7
- - tsfile
8
- pretty_name: proenfo_bull (TsFile format)
9
- ---
10
-
11
- # proenfo_bull — TsFile 格式
12
-
13
- 本目录是 [`autogluon/fev_datasets`](https://huggingface.co/datasets/autogluon/fev_datasets) 中 **proenfo_bull** 子集转换为 [Apache TsFile](https://tsfile.apache.org/) 格式的版本。
14
-
15
- ## 来源与引用
16
-
17
- - **原始来源**https://github.com/Leo-VK/EnFoAV
18
- - **论文/引用**[[16]](https://doi.org/10.48550/arXiv.2307.07191)
19
- - **统一格式合集**[autogluon/fev_datasets](https://huggingface.co/datasets/autogluon/fev_datasets)
20
-
21
- > 本数据由外部来源转换为统一格式后再转为 TsFile。许可与引用以**原始来源**为准,我们不对原始数据主张任何权利。除非另有说明,数据仅供研究用途。
22
-
23
- ## 数据统计
24
-
25
- | 序列数 | 中位长度 | 观测点数 | 动态列 | 静态列 | 文件 |
26
- |---|---|---|---|---|---|
27
- | 41 | 17,544 | 2,877,216 | 4 | 0 | `proenfo_bull.tsfile` |
28
-
29
- ## TsFile 存储模型
30
-
31
- - 每条原始序列(`id`)→ 一个 **device**TAG 维度)。
32
- - 随时间变化的 target / 动态协变量 **measurement**(FIELD)。
33
- - `timestamp` `Time`INT64 毫秒)。
34
- - 表名:proenfo_bull
35
-
36
- ### 列含义
37
-
38
- | | 角色 | TsFile 类型 |
39
- |---|---|---|
40
- | `Time` | Time(时间列) | INT64 |
41
- | `id` | TAGdevice 维度) | STRING |
42
- | `target` | FIELDmeasurement | FLOAT |
43
- | `airtemperature` | FIELDmeasurement | FLOAT |
44
- | `dewtemperature` | FIELDmeasurement | FLOAT |
45
- | `sealvlpressure` | FIELDmeasurement | FLOAT |
46
-
47
- ## 转换说明
48
-
49
- - 每行原始数据是一整条序列 `(id, timestamp[], target[])`,纵向打平为长表后写入 TsFile
50
- - 数值类型按源列自适应:float32FLOATfloat64DOUBLE、整数→INT64boolBOOLEAN
51
- - 时间精度:毫秒(INT64)。
52
- - 大表会被工具自动分片为 `<>_1.tsfile``<>_2.tsfile` …,同属一个逻辑表。
53
-
54
- ## 读取示例
55
-
56
- ```python
57
- from tsfile import TsFileReader
58
-
59
- reader = TsFileReader("proenfo_bull.tsfile")
60
- schemas = reader.get_all_table_schemas()
61
- # 表名:proenfo_bull;列见下方"列含义"
62
- ```
 
1
+ ---
2
+ license: other
3
+ task_categories:
4
+ - time-series-forecasting
5
+ tags:
6
+ - time-series
7
+ - tsfile
8
+ - format:tsfile
9
+ pretty_name: proenfo_bull (TsFile format)
10
+ ---
11
+
12
+
13
+ # proenfo_bull (TsFile format)
14
+
15
+ ## Source and Citation
16
+
17
+ - **Original source**: https://github.com/Leo-VK/EnFoAV
18
+ - **Paper / citation**: [[16]](https://doi.org/10.48550/arXiv.2307.07191)
19
+ - **Unified source collection**: [autogluon/fev_datasets](https://huggingface.co/datasets/autogluon/fev_datasets)
20
+
21
+ > This dataset was converted from external source data into a unified forecasting format and then into TsFile. Licensing and citation requirements follow the original source. We do not claim ownership of the original data. Unless otherwise stated, the data is intended for research use.
22
+
23
+ ## Dataset Statistics
24
+
25
+ | Number of series | Median length | Observations | Dynamic columns | Static columns | Files |
26
+ |---|---|---|---|---|---|
27
+ | 41 | 17,544 | 2,877,216 | 4 | 0 | `proenfo_bull.tsfile` |
28
+
29
+ ## TsFile Storage Model
30
+
31
+ - Each original series (`id`) is stored as one TsFile **device** (TAG dimension).
32
+ - Time-varying targets and dynamic covariates are stored as **measurements** (FIELDs).
33
+ - `timestamp` is mapped to `Time` as INT64 milliseconds.
34
+ - Table name: proenfo_bull.
35
+
36
+ ### Column Schema
37
+
38
+ | Column | Role | TsFile type |
39
+ |---|---|---|
40
+ | `Time` | Time column | INT64 |
41
+ | `id` | TAG (device dimension) | STRING |
42
+ | `target` | FIELD (measurement) | FLOAT |
43
+ | `airtemperature` | FIELD (measurement) | FLOAT |
44
+ | `dewtemperature` | FIELD (measurement) | FLOAT |
45
+ | `sealvlpressure` | FIELD (measurement) | FLOAT |
46
+
47
+ ## Conversion Notes
48
+
49
+ - Each original row stores one complete series `(id, timestamp[], target and dynamic arrays)`. The converter flattens these nested rows into a long table before writing TsFile.
50
+ - Numeric types are inferred from the source columns, for example float32 to FLOAT, float64 to DOUBLE, integers to INT64, and bool to BOOLEAN.
51
+ - Time precision: milliseconds (INT64).
52
+ - Large tables may be automatically sharded as `<name>_1.tsfile`, `<name>_2.tsfile`, and so on. These shards belong to the same logical table.
53
+
54
+ ## Reading Example
55
+
56
+ ```python
57
+ from tsfile import TsFileReader
58
+
59
+ reader = TsFileReader("proenfo_bull.tsfile")
60
+ schemas = reader.get_all_table_schemas()
61
+ # Table name: proenfo_bull; see \"Column Schema\" below.
62
+ ```