smilegeng commited on
Commit
f58ffcb
·
verified ·
1 Parent(s): 954ebc2

Add TsFile (converted from wachawich/REG-Forecasting_v2)

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +39 -0
  3. reg_forecasting_v2.tsfile +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ reg_forecasting_v2.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # REG-Forecasting_v2 (TsFile 格式)
2
+
3
+ > 原数据集:https://huggingface.co/datasets/wachawich/REG-Forecasting_v2
4
+
5
+ 本仓库是 `wachawich/REG-Forecasting_v2` 转换为 Apache TsFile 格式的版本,用于时序数据库 / 时序预测场景。
6
+
7
+ ## 数据内容
8
+
9
+ 单一地区的可再生能源发电预测数据,时间范围 **2020-01-01 ~ 2025-11-19**,逐小时采样。每个小时有两种发电类型(Solar、Wind)的发电量,以及共享的气象与天文特征。
10
+
11
+ ## TsFile 存储模型
12
+
13
+ - **表名**:`reg_forecasting_v2`
14
+ - **TAG(设备维度)**:`type_name`(`Solar` / `Wind`)—— 每种发电类型是一条独立时间序列
15
+ - **Time**:由原始 `date`(YYYY-MM-DD)+ `time`(一天内的小时槽 0~23)**拼接**成真实时间戳,INT64 毫秒
16
+ - **FIELD**:`value`(发电量)+ 42 个气象/天文/日期分量特征列(辐射、云量、温度、湿度、气压、风速风向、降水、日出日落、周期正余弦编码等)
17
+ - 行数:**103,079**(去重后)
18
+
19
+ 类型映射:float64 → DOUBLE,整数 → INT64,字符串 → STRING。
20
+
21
+ ## 与原数据集的差异(转换说明)
22
+
23
+ 转换过程中以下列被丢弃或变动,**原因如下**:
24
+
25
+ | 列 | 处理 | 原因 |
26
+ |---|---|---|
27
+ | `date` | 丢弃 | 与 `time` 拼接进 `Time` 列,信息无损保留 |
28
+ | `time` | 丢弃 | 一天内的小时槽,已拼接进 `Time` 列 |
29
+ | `fueltype` | 丢弃 | 与 TAG 列 `type-name` 完全等价(1=Solar, 2=Wind),避免冗余 |
30
+ | `type-name` | 重命名为 `type_name` | 原名含连字符,不是合法 TsFile 标识符;作为 TAG 列 |
31
+ | 46 个重复行 | 去重 | 夏令时切换日(如 03-31 / 06-29 的 time=0)产生的完全相同重复记录,TsFile 同一设备同一时间戳只能有一个点 |
32
+
33
+ 其余 42 个气象/天文/日期分量特征列**全部保留**为 FIELD。
34
+
35
+ ## 读回校验
36
+
37
+ - 行数:staged parquet 103,079 == tsfile 读回 103,079 ✓
38
+ - tag:`type_name` category=TAG,其余 43 列 category=FIELD ✓
39
+ - 时间戳拼接:首行 `1577836800000` = 2020-01-01 00:00:00 UTC,次行 +1 小时 ✓
reg_forecasting_v2.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0733c2afe9ba13ea5ece9b3e704ea23b5e9b151007c7dfbec6f1fda11f1d280d
3
+ size 35237263