Datasets:
Add TsFile (converted from dany-l-23/coupled-msd)
Browse files- .gitattributes +3 -0
- README.md +94 -0
- coupled_msd_test.tsfile +3 -0
- coupled_msd_train.tsfile +3 -0
- coupled_msd_validation.tsfile +3 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,6 @@ 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 |
+
coupled_msd_test.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
coupled_msd_train.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
coupled_msd_validation.tsfile filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: "Coupled Mass-Spring-Damper (TsFile)"
|
| 3 |
+
modality: timeseries
|
| 4 |
+
authors: "dany-l-23"
|
| 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: "coupled_msd_*.tsfile"
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Coupled Mass-Spring-Damper (TsFile)
|
| 22 |
+
|
| 23 |
+
This dataset is an Apache TsFile conversion of
|
| 24 |
+
[`dany-l-23/coupled-msd`](https://huggingface.co/datasets/dany-l-23/coupled-msd).
|
| 25 |
+
|
| 26 |
+
Modalities: Time-series.
|
| 27 |
+
|
| 28 |
+
## Overview
|
| 29 |
+
|
| 30 |
+
- Input–output data of a coupled mass-spring-damper system with a nonlinear force profile (generated with `statesim`).
|
| 31 |
+
- 200 simulation trajectories of length 7500, split 120 train / 20 validation / 60 test.
|
| 32 |
+
- `u_1` is the input, `y_1` the output, and `x_1..x_8` the internal states.
|
| 33 |
+
- The train/validation/test split is preserved as three tsfiles; each trajectory is a device via the `traj_id` TAG.
|
| 34 |
+
|
| 35 |
+
- Converted observations: 1,500,000 rows across 3 TsFile file(s)
|
| 36 |
+
- Source format: csv
|
| 37 |
+
|
| 38 |
+
## TsFile schema
|
| 39 |
+
|
| 40 |
+
- **Time** — source `t` (seconds), converted to INT64 milliseconds.
|
| 41 |
+
|
| 42 |
+
| Column | Role | Type | Meaning |
|
| 43 |
+
|---|---|---|---|
|
| 44 |
+
| `Time` | TIME | INT64 (ms) | sample timestamp |
|
| 45 |
+
| `traj_id` | TAG | STRING | trajectory id |
|
| 46 |
+
| `u_1` | FIELD | FLOAT | input |
|
| 47 |
+
| `y_1` | FIELD | FLOAT | output |
|
| 48 |
+
| `x_1` | FIELD | FLOAT | state 1 |
|
| 49 |
+
| `x_2` | FIELD | FLOAT | — |
|
| 50 |
+
| `x_3` | FIELD | FLOAT | — |
|
| 51 |
+
| `x_4` | FIELD | FLOAT | — |
|
| 52 |
+
| `x_5` | FIELD | FLOAT | — |
|
| 53 |
+
| `x_6` | FIELD | FLOAT | — |
|
| 54 |
+
| `x_7` | FIELD | FLOAT | — |
|
| 55 |
+
| `x_8` | FIELD | FLOAT | — |
|
| 56 |
+
|
| 57 |
+
## Conversion notes
|
| 58 |
+
|
| 59 |
+
- Split preserved: `coupled_msd_train.tsfile`, `coupled_msd_validation.tsfile`, `coupled_msd_test.tsfile`.
|
| 60 |
+
- `t` consumed into Time; all 10 measurement/state columns kept as FLOAT FIELDs.
|
| 61 |
+
|
| 62 |
+
## Source & license
|
| 63 |
+
|
| 64 |
+
- Original dataset: https://huggingface.co/datasets/dany-l-23/coupled-msd
|
| 65 |
+
- Author / publisher: dany-l-23
|
| 66 |
+
- License: mit
|
| 67 |
+
|
| 68 |
+
## Usage
|
| 69 |
+
|
| 70 |
+
Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
from pathlib import Path
|
| 74 |
+
from tsfile import TsFileReader
|
| 75 |
+
|
| 76 |
+
path = Path("coupled_msd_test.tsfile")
|
| 77 |
+
with TsFileReader(str(path)) as reader:
|
| 78 |
+
schemas = reader.get_all_table_schemas()
|
| 79 |
+
print("tables:", list(schemas))
|
| 80 |
+
table_name = next(iter(schemas))
|
| 81 |
+
table = schemas[table_name]
|
| 82 |
+
columns = [column.get_column_name() for column in table.get_columns()]
|
| 83 |
+
print("columns:", columns)
|
| 84 |
+
field_names = [
|
| 85 |
+
column.get_column_name()
|
| 86 |
+
for column in table.get_columns()
|
| 87 |
+
if column.get_column_name() not in {"Time", "time"}
|
| 88 |
+
]
|
| 89 |
+
if field_names:
|
| 90 |
+
with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
|
| 91 |
+
batch = result.read_arrow_batch()
|
| 92 |
+
if batch is not None:
|
| 93 |
+
print(batch.to_pandas().head())
|
| 94 |
+
```
|
coupled_msd_test.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc1ddcdc6005c19807f90f474e0f07452c1dbd62e4efd41fd5be4fc4f6eb0c27
|
| 3 |
+
size 17362455
|
coupled_msd_train.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7fde8db4849fbb10658d0bd768eb9cd7a18c1b69ba3720707fa3e74be16db31b
|
| 3 |
+
size 34737973
|
coupled_msd_validation.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dccef9b2b376fb6be7619cb8739238f52b02b681de929b1d235caebef7ab8d8b
|
| 3 |
+
size 5789458
|