wangdx25 commited on
Commit
ba624f1
·
verified ·
1 Parent(s): 90b33ea

Add TsFile (converted from odysseywt/Azure)

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +88 -0
  3. azure.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
+ azure.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: "Azure Predictive Maintenance (TsFile)"
3
+ modality: timeseries
4
+ authors: "odysseywt"
5
+ task_categories:
6
+ - time-series-forecasting
7
+ size_categories:
8
+ - 100K<n<1M
9
+ tags:
10
+ - tsfile
11
+ - timeseries
12
+ - modality:timeseries
13
+ - format:tsfile
14
+ configs:
15
+ - config_name: default
16
+ data_files:
17
+ - split: train
18
+ path: "azure.tsfile"
19
+ ---
20
+
21
+ # Azure Predictive Maintenance (TsFile)
22
+
23
+ This dataset is an Apache TsFile conversion of
24
+ [`odysseywt/Azure`](https://huggingface.co/datasets/odysseywt/Azure).
25
+
26
+ Modalities: Time-series.
27
+
28
+ ## Overview
29
+
30
+ - Industrial machine telemetry for predictive maintenance (Azure demo dataset).
31
+ - Voltage, rotation, pressure, and vibration readings with machine age and a failure label.
32
+ - Each machine is a device identified by the `machineID` TAG.
33
+
34
+ - Converted observations: 876,100 rows across 1 TsFile file(s)
35
+ - Source format: csv
36
+
37
+ ## TsFile schema
38
+
39
+ - **Time** — source `datetime` (datetime), converted to INT64 milliseconds.
40
+
41
+ | Column | Role | Type | Meaning |
42
+ |---|---|---|---|
43
+ | `Time` | TIME | INT64 (ms) | sample timestamp |
44
+ | `machineID` | TAG | STRING | machine id |
45
+ | `volt` | FIELD | FLOAT | voltage |
46
+ | `rotate` | FIELD | FLOAT | rotation |
47
+ | `pressure` | FIELD | FLOAT | pressure |
48
+ | `vibration` | FIELD | FLOAT | vibration |
49
+ | `age` | FIELD | FLOAT | machine age |
50
+ | `label` | FIELD | FLOAT | failure label |
51
+
52
+ ## Conversion notes
53
+
54
+ - `machineID` kept as TAG; telemetry + age + label as FIELDs.
55
+
56
+ ## Source & license
57
+
58
+ - Original dataset: https://huggingface.co/datasets/odysseywt/Azure
59
+ - Author / publisher: odysseywt
60
+ - License: mit
61
+
62
+ ## Usage
63
+
64
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
65
+
66
+ ```python
67
+ from pathlib import Path
68
+ from tsfile import TsFileReader
69
+
70
+ path = Path("azure.tsfile")
71
+ with TsFileReader(str(path)) as reader:
72
+ schemas = reader.get_all_table_schemas()
73
+ print("tables:", list(schemas))
74
+ table_name = next(iter(schemas))
75
+ table = schemas[table_name]
76
+ columns = [column.get_column_name() for column in table.get_columns()]
77
+ print("columns:", columns)
78
+ field_names = [
79
+ column.get_column_name()
80
+ for column in table.get_columns()
81
+ if column.get_column_name() not in {"Time", "time"}
82
+ ]
83
+ if field_names:
84
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
85
+ batch = result.read_arrow_batch()
86
+ if batch is not None:
87
+ print(batch.to_pandas().head())
88
+ ```
azure.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b921ec0ca37e42c0eb969ddac9fb55d7d973912c677b7c7b5dda3f2fce2c7a32
3
+ size 12357660