VGalaxies666 commited on
Commit
edbda77
·
verified ·
1 Parent(s): 4c9884a

Rewrite README in English

Browse files
Files changed (1) hide show
  1. README.md +36 -38
README.md CHANGED
@@ -8,60 +8,58 @@ tags:
8
  pretty_name: gvar (TsFile format)
9
  ---
10
 
11
- # gvar — TsFile 格式
12
 
13
- 本目录是 [`autogluon/fev_datasets`](https://huggingface.co/datasets/autogluon/fev_datasets) 中 **gvar** 子集转换为 [Apache TsFile](https://tsfile.apache.org/) 格式的版本。
14
 
15
- ## 来源与引用
 
 
16
 
17
- - **原始来源**:https://data.mendeley.com/datasets/kfp5fhgkvf/1
18
- - **论文/引用**:[[11]](https://doi.org/10.17863/CAM.104755)
19
- - **统一格式合集**:[autogluon/fev_datasets](https://huggingface.co/datasets/autogluon/fev_datasets)
20
 
21
- > 本数据由外部来源转换为统一格式后再转为 TsFile。许可与引用以**原始来源**为准,我们不对原始数据主张任何权利。除非另有说明,数据仅供研究用途。
22
 
23
- ## 数据统计
24
-
25
- | 序列数 | 中位长度 | 观测点数 | 动态列 | 静态列 | 文件 |
26
  |---|---|---|---|---|---|
27
  | 33 | 178 | 52,866 | 9 | 0 | `gvar.tsfile` |
28
 
29
- ## TsFile 存储模型
30
 
31
- - 每条原始序列(`id`)→ 一个 **device**(TAG 维度)。
32
- - 随时间变化的 target / 动态协变量 → **measurement**(FIELD)。
33
- - `timestamp` → `Time`(INT64 毫秒)。
34
- - 表名:gvar。
35
 
36
- ### 列含义
37
 
38
- | 列 | 角色 | TsFile 类型 |
39
  |---|---|---|
40
- | `Time` | Time(时间列) | INT64 |
41
- | `id` | TAG(device 维度) | STRING |
42
- | `y` | FIELD(measurement) | FLOAT |
43
- | `Dp` | FIELD(measurement) | FLOAT |
44
- | `eq` | FIELD(measurement) | FLOAT |
45
- | `ep` | FIELD(measurement) | FLOAT |
46
- | `r` | FIELD(measurement) | FLOAT |
47
- | `lr` | FIELD(measurement) | FLOAT |
48
- | `poil` | FIELD(measurement) | FLOAT |
49
- | `pmat` | FIELD(measurement) | FLOAT |
50
- | `pmetal` | FIELD(measurement) | FLOAT |
51
-
52
- ## 转换说明
53
-
54
- - 每行原始数据是一整条序列 `(id, timestamp[], 各 target[])`,纵向打平为长表后写入 TsFile。
55
- - 数值类型按源列自适应:float32→FLOAT、float64→DOUBLE、整数→INT64、bool→BOOLEAN。
56
- - 时间精度:毫秒(INT64)。
57
- - 大表会被工具自动分片为 `<名>_1.tsfile`、`<名>_2.tsfile` …,同属一个逻辑表。
58
-
59
- ## 读取示例
60
 
61
  ```python
62
  from tsfile import TsFileReader
63
 
64
  reader = TsFileReader("gvar.tsfile")
65
  schemas = reader.get_all_table_schemas()
66
- # 表名:gvar;列见下方"列含义"。
67
  ```
 
8
  pretty_name: gvar (TsFile format)
9
  ---
10
 
11
+ # gvar (TsFile format)
12
 
13
+ ## Source and Citation
14
 
15
+ - **Original source**: https://data.mendeley.com/datasets/kfp5fhgkvf/1
16
+ - **Paper / citation**: [[11]](https://doi.org/10.17863/CAM.104755)
17
+ - **Unified source collection**: [autogluon/fev_datasets](https://huggingface.co/datasets/autogluon/fev_datasets)
18
 
19
+ > 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.
 
 
20
 
21
+ ## Dataset Statistics
22
 
23
+ | Number of series | Median length | Observations | Dynamic columns | Static columns | Files |
 
 
24
  |---|---|---|---|---|---|
25
  | 33 | 178 | 52,866 | 9 | 0 | `gvar.tsfile` |
26
 
27
+ ## TsFile Storage Model
28
 
29
+ - Each original series (`id`) is stored as one TsFile **device** (TAG dimension).
30
+ - Time-varying targets and dynamic covariates are stored as **measurements** (FIELDs).
31
+ - `timestamp` is mapped to `Time` as INT64 milliseconds.
32
+ - Table name: gvar.
33
 
34
+ ### Column Schema
35
 
36
+ | Column | Role | TsFile type |
37
  |---|---|---|
38
+ | `Time` | Time column | INT64 |
39
+ | `id` | TAG (device dimension) | STRING |
40
+ | `y` | FIELD (measurement) | FLOAT |
41
+ | `Dp` | FIELD (measurement) | FLOAT |
42
+ | `eq` | FIELD (measurement) | FLOAT |
43
+ | `ep` | FIELD (measurement) | FLOAT |
44
+ | `r` | FIELD (measurement) | FLOAT |
45
+ | `lr` | FIELD (measurement) | FLOAT |
46
+ | `poil` | FIELD (measurement) | FLOAT |
47
+ | `pmat` | FIELD (measurement) | FLOAT |
48
+ | `pmetal` | FIELD (measurement) | FLOAT |
49
+
50
+ ## Conversion Notes
51
+
52
+ - 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.
53
+ - Numeric types are inferred from the source columns, for example float32 to FLOAT, float64 to DOUBLE, integers to INT64, and bool to BOOLEAN.
54
+ - Time precision: milliseconds (INT64).
55
+ - Large tables may be automatically sharded as `<name>_1.tsfile`, `<name>_2.tsfile`, and so on. These shards belong to the same logical table.
56
+
57
+ ## Reading Example
58
 
59
  ```python
60
  from tsfile import TsFileReader
61
 
62
  reader = TsFileReader("gvar.tsfile")
63
  schemas = reader.get_all_table_schemas()
64
+ # Table name: gvar; see \"Column Schema\" below.
65
  ```