wangdx25 commited on
Commit
65d3fc5
·
verified ·
1 Parent(s): 8362f8b

Add TsFile (converted from gft/ttm4hvac-source-default-train)

Browse files
.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
+ ttm4hvac_source_default_train.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - time-series-forecasting
5
+ tags:
6
+ - tsfile
7
+ - timeseries
8
+ - time-series
9
+ - ttm4hvac
10
+ - hvac
11
+ - energy
12
+ - format:tsfile
13
+ pretty_name: TTM4HVAC source-default train (TsFile)
14
+ size_categories:
15
+ - 100K<n<1M
16
+ ---
17
+
18
+ # TTM4HVAC — source-default train (TsFile)
19
+
20
+ Apache TsFile version of [`gft/ttm4hvac-source-default-train`](https://huggingface.co/datasets/gft/ttm4hvac-source-default-train).
21
+
22
+ ## Overview
23
+
24
+ HVAC and weather time-series data collected under default building control
25
+ schedules for the source domain. It is used to train the
26
+ `gft/ttm4hvac-source-default` model. Each `series_id` is a building/sensor series
27
+ of time-aligned weather and HVAC measurements.
28
+
29
+ ## Schema (TsFile structure)
30
+
31
+ - **Time** (INT64, milliseconds) — the observation timestamp.
32
+ - **series_id** (TAG) — device dimension identifying the building/sensor series.
33
+ - **Room_Air_Temperature_C** / **Outdoor_Air_Temperature_C** (FIELD, FLOAT).
34
+ - **Heating_Setpoint_C** / **Cooling_Setpoint_C** (FIELD, FLOAT).
35
+ - **Outdoor_Humidity** (FIELD, FLOAT).
36
+ - **Wind_Speed_m_s** (FIELD, FLOAT).
37
+ - **Direct_Solar_Radiation_W_m_2** (FIELD, FLOAT).
38
+ - **HVAC_Power_Consumption_W** (FIELD, FLOAT).
39
+ - **is_default** (FIELD, FLOAT) — whether the sample is under a default control schedule.
40
+
41
+ ## Usage
42
+
43
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
44
+
45
+ ```python
46
+ from pathlib import Path
47
+ from tsfile import TsFileReader
48
+
49
+ path = Path("ttm4hvac_source_default_train.tsfile")
50
+ with TsFileReader(str(path)) as reader:
51
+ schemas = reader.get_all_table_schemas()
52
+ print("tables:", list(schemas))
53
+ table_name = next(iter(schemas))
54
+ table = schemas[table_name]
55
+ columns = [column.get_column_name() for column in table.get_columns()]
56
+ print("columns:", columns)
57
+ field_names = [
58
+ column.get_column_name()
59
+ for column in table.get_columns()
60
+ if column.get_column_name() not in {"Time", "time"}
61
+ ]
62
+ if field_names:
63
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
64
+ batch = result.read_arrow_batch()
65
+ if batch is not None:
66
+ print(batch.to_pandas().head())
67
+ ```
68
+
69
+ ## Source & license
70
+
71
+ - Original dataset: https://huggingface.co/datasets/gft/ttm4hvac-source-default-train
72
+ - Author / publisher: gft
73
+ - Paper: "A reproducible method to generate multi-building, multi-climate HVAC
74
+ operation datasets with a stochastic exploratory controller"
75
+ - License: MIT
ttm4hvac_source_default_train.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d92d6cb4d69737b1935ff8bf6705ecb1f7ab71deb96b756534861363a72efe47
3
+ size 5126561