wangdx25 commited on
Commit
e170e1b
·
verified ·
1 Parent(s): 4540302

Add TsFile (converted from odysseywt/UoC)

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +84 -0
  3. uoc.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
+ uoc.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: "UoC Bearing Vibration (TsFile)"
3
+ modality: timeseries
4
+ authors: "odysseywt"
5
+ task_categories:
6
+ - time-series-forecasting
7
+ size_categories:
8
+ - 1M<n<10M
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: "uoc.tsfile"
19
+ ---
20
+
21
+ # UoC Bearing Vibration (TsFile)
22
+
23
+ This dataset is an Apache TsFile conversion of
24
+ [`odysseywt/UoC`](https://huggingface.co/datasets/odysseywt/UoC).
25
+
26
+ Modalities: Time-series.
27
+
28
+ ## Overview
29
+
30
+ - University of Ottawa bearing vibration dataset for fault diagnosis.
31
+ - Each segment stores a raw vibration vector (`features`, 3600 samples).
32
+ - `label` (condition) and `segment_id` are device TAGs.
33
+
34
+ - Converted observations: 3,369,600 rows across 1 TsFile file(s)
35
+ - Source format: csv
36
+
37
+ ## TsFile schema
38
+
39
+ - **Time** — sample index within each segment (0..3599), stored as INT64 milliseconds.
40
+
41
+ | Column | Role | Type | Meaning |
42
+ |---|---|---|---|
43
+ | `Time` | TIME | INT64 (ms) | sample timestamp |
44
+ | `label` | TAG | STRING | condition label |
45
+ | `segment_id` | TAG | STRING | segment id |
46
+ | `features` | FIELD | FLOAT | vibration amplitude |
47
+
48
+ ## Conversion notes
49
+
50
+ - Raw vibration arrays flattened to scalar samples; `label` + `segment_id` are TAGs.
51
+
52
+ ## Source & license
53
+
54
+ - Original dataset: https://huggingface.co/datasets/odysseywt/UoC
55
+ - Author / publisher: odysseywt
56
+ - License: mit
57
+
58
+ ## Usage
59
+
60
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
61
+
62
+ ```python
63
+ from pathlib import Path
64
+ from tsfile import TsFileReader
65
+
66
+ path = Path("uoc.tsfile")
67
+ with TsFileReader(str(path)) as reader:
68
+ schemas = reader.get_all_table_schemas()
69
+ print("tables:", list(schemas))
70
+ table_name = next(iter(schemas))
71
+ table = schemas[table_name]
72
+ columns = [column.get_column_name() for column in table.get_columns()]
73
+ print("columns:", columns)
74
+ field_names = [
75
+ column.get_column_name()
76
+ for column in table.get_columns()
77
+ if column.get_column_name() not in {"Time", "time"}
78
+ ]
79
+ if field_names:
80
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
81
+ batch = result.read_arrow_batch()
82
+ if batch is not None:
83
+ print(batch.to_pandas().head())
84
+ ```
uoc.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7465e8697f160060d3774c0a109f637956f00500ae908e136fb981082a56f71
3
+ size 14724114