Datasets:
Add TsFile (converted from kashif/App_Flow)
Browse files- .gitattributes +1 -0
- README.md +61 -0
- app_flow.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 |
+
app_flow.tsfile filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- time-series-forecasting
|
| 5 |
+
tags:
|
| 6 |
+
- tsfile
|
| 7 |
+
- format:tsfile
|
| 8 |
+
- timeseries
|
| 9 |
+
modality: timeseries
|
| 10 |
+
configs:
|
| 11 |
+
- config_name: default
|
| 12 |
+
data_files:
|
| 13 |
+
- split: train
|
| 14 |
+
path: app_flow.tsfile
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# App Flow
|
| 18 |
+
|
| 19 |
+
This dataset consists of hourly maximum traffic flow for 128 systems deployed on 16 logic data centers, resulting in 1083 different time series in total.
|
| 20 |
+
The length of each series is more than 4 months. Each time series is divided into two segments for training and testing with a ratio of 32:1.
|
| 21 |
+
This dataset was collected at Ant Group and does not contain any Personal Identifiable Information and is desensitized and encrypted.
|
| 22 |
+
|
| 23 |
+
## TsFile Conversion
|
| 24 |
+
|
| 25 |
+
- Original dataset: [`kashif/App_Flow`](https://huggingface.co/datasets/kashif/App_Flow)
|
| 26 |
+
- Modalities: Time-series
|
| 27 |
+
- Converted data files are listed in the YAML metadata above.
|
| 28 |
+
- Source README text and dataset-specific metadata are retained; the source
|
| 29 |
+
Usage section is replaced with the executable TsFile Python SDK example below.
|
| 30 |
+
|
| 31 |
+
- The encrypted source CSV is decoded as provided; `app_name` and `zone` are TAG columns, `time` becomes millisecond `Time`, and only the pandas export index is removed.
|
| 32 |
+
- Rows are stably sorted by `app_name`, `zone`, and `Time`; duplicate or otherwise too-close timestamps within one device receive the smallest deterministic millisecond offsets needed for a strictly increasing TsFile timeline.
|
| 33 |
+
|
| 34 |
+
## Usage
|
| 35 |
+
|
| 36 |
+
Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
from pathlib import Path
|
| 40 |
+
from tsfile import TsFileReader
|
| 41 |
+
|
| 42 |
+
path = Path("app_flow.tsfile")
|
| 43 |
+
with TsFileReader(str(path)) as reader:
|
| 44 |
+
schemas = reader.get_all_table_schemas()
|
| 45 |
+
print("tables:", list(schemas))
|
| 46 |
+
table_name = next(iter(schemas))
|
| 47 |
+
table = schemas[table_name]
|
| 48 |
+
columns = [column.get_column_name() for column in table.get_columns()]
|
| 49 |
+
print("columns:", columns)
|
| 50 |
+
field_names = [
|
| 51 |
+
column.get_column_name()
|
| 52 |
+
for column in table.get_columns()
|
| 53 |
+
if column.get_column_name() not in {"Time", "time"}
|
| 54 |
+
]
|
| 55 |
+
if field_names:
|
| 56 |
+
with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
|
| 57 |
+
batch = result.read_arrow_batch()
|
| 58 |
+
if batch is not None:
|
| 59 |
+
print(batch.to_pandas().head())
|
| 60 |
+
```
|
| 61 |
+
|
app_flow.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ea656d9e523f9d1920165d00730334360411da1e0fd0273829c66edf08ed440
|
| 3 |
+
size 3584864
|