Datasets:

File size: 2,267 Bytes
6bc1a46
 
 
 
 
15af146
f37e903
 
15af146
f37e903
 
 
15af146
 
6bc1a46
 
f37e903
6bc1a46
 
 
 
 
 
 
 
 
 
 
f37e903
 
15af146
 
f37e903
 
6bc1a46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
license: cc-by-4.0
task_categories:
- time-series-forecasting
tags:
- time-series
- forecasting
- anomaly-detection
- classification
- TSLib
- tsfile
- modality:timeseries
- timeseries
- format:tsfile
pretty_name: Handwriting (TsFile)
size_categories:
- 1M<n<10M
configs:
- config_name: default
  data_files:
  - split: train
    path: Handwriting_train.tsfile
  - split: test
    path: Handwriting_test.tsfile
  - split: train_labels
    path: labels/Handwriting_train_labels.csv
  - split: test_labels
    path: labels/Handwriting_test_labels.csv
modality:
- timeseries
- tabular
- text
language:
- en
---

# Handwriting (TsFile)

Apache TsFile version of the `Handwriting` UEA classification subset of
[`thuml/Time-Series-Library`](https://huggingface.co/datasets/thuml/Time-Series-Library).

## Overview

Accelerometer traces of writing the 26 letters; classify the letter.

- **Train samples:** 150.
- **Test samples:** 850.
- **Dimensions (channels):** 3.
- **Series length:** 152.
- **Classes:** 26.

Each sample is an independent multivariate series. TRAIN and TEST are stored as
two separate TsFiles (`Handwriting_train.tsfile` / `Handwriting_test.tsfile`).
Class labels are stored as separate CSV sidecar files in `labels/`.

## Schema (TsFile structure)

- **sample_index** (TAG) - one device per sample. Query one sample with
  `WHERE sample_index=0`.
- **Time** (INT64) - within-sample position (0..151), a frame index rather than
  a wall-clock timestamp.
- **dim_0..dim_2** (FIELD, FLOAT) - the 3 channels at each position.
- **Labels** (CSV sidecar) - `labels/Handwriting_train_labels.csv` and
  `labels/Handwriting_test_labels.csv` contain `sample_index,class_label`, one
  row per sample.

Converted from the sktime `.ts` format. No dimensions, time points, samples, or
labels are dropped. Labels are not stored inside the TsFile feature tables.

## Usage

Read the `.tsfile` files with the Apache TsFile Java or Python SDK. Join labels
from the sidecar CSV files by `sample_index` within the matching split.

## Source & license

- Original dataset: https://huggingface.co/datasets/thuml/Time-Series-Library (subset `Handwriting`)
- Author / publisher: thuml (Tsinghua University)
- Paper: https://arxiv.org/abs/2407.13278
- License: CC BY 4.0