File size: 1,564 Bytes
5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f 958cf9e 5ae982f | 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 | # Data Format
This document defines the public format for the ready-to-use preprocessed HAR dataset release.
## Repository Layout
```text
datasets/{dataset_slug}/*.npy
archives/*.zip
metadata/datasets.yaml
metadata/manifest.csv
```
The current partial release uses these folder slugs:
- `uci`
- `unimib`
- `pamap2`
- `wisdm`
- `oppo`
- `WSBHA`
The planned full release can add more folders such as `usc_had`, `flaap`, `hapt`, `mhealth`, and `dsads`.
## NumPy Array Convention
Each sample array is already windowed and split. Most feature tensors follow:
```text
num_windows x timesteps x channels
```
The exact shape and dtype of every uploaded file are listed in:
```text
metadata/partial_upload_2026-05-14_manifest.csv
```
For example:
```python
from huggingface_hub import hf_hub_download
import numpy as np
x_path = hf_hub_download(
repo_id="shenjianmozhu/preprocessed-har-datasets",
repo_type="dataset",
filename="datasets/uci/x_train.npy",
)
X = np.load(x_path)
print(X.shape)
```
## Recommended Standard Names
When adding new processed datasets, prefer one of these patterns:
- `x_train.npy`, `y_train.npy`, `x_test.npy`, `y_test.npy`
- `training_data.npy`, `training_labels.npy`, `testing_data.npy`, `testing_labels.npy`
If a dataset has validation files, use explicit names such as `x_val.npy` and `y_val.npy`.
## Manifest
`metadata/*manifest.csv` should include one row per released file:
```text
relative_path,dataset_dir,file_name,shape,dtype,size_bytes
```
The manifest should be regenerated after every data change.
|