Pybunny/nilmbench-faustine
Updated
dtype string | labels_and_index string | missing_window_ids list | n_samples int64 | shape list | source_sparse string | split string | x_vi_6s string |
|---|---|---|---|---|---|---|---|
float16 | /home/arx7ti/drive/NILMbench/data/sparse_hf_6s/train/labels_and_index.npz | [] | 10,000 | [
10000,
2,
96000
] | /home/arx7ti/drive/NILMbench/data/sparse_6s/train.npz | train | /home/arx7ti/drive/NILMbench/data/sparse_hf_6s/train/x_vi_6s.npy |
Pre-processed 16 kHz voltage/current frames and per-category active-power labels from the UK-DALE 2015 release, packaged for the NILMbench benchmark (House 1 → House 2 cross-household evaluation).
train/ 10,000 sparse class-balanced 6-second frames from House 1
val/ 1,000 sparse class-balanced 6-second frames from House 1
benchmark/ 2,000 sparse class-balanced 6-second frames from House 2
Each split contains:
| File | Shape | Description |
|---|---|---|
x_vi_6s.npy |
(N, 2, 96000) float16 |
16 kHz V/I waveform per frame (FLAC-normalised, range [-1, 1]) |
labels_and_index.npz |
dict | per-category power label, on/off label, aggregate context, timestamp, source window id |
labels_and_index.npz contains:
y_power (N, 7) float32 — active power in watts per scored categoryy_state (N, 7) bool — on/off label per categoryx_agg (N, 11) float32 — aggregate-power context (±5 frames, ±30 s)timestamp (N,) int64 — Unix seconds of frame centresample_idx (N,) int16 — 0..599 index inside the source windowwindow_id (N,) str — UK-DALE window identifierclass_names (7,) str — ordered category namesThe V/I waveforms are stored in FLAC-normalised form (range [-1, 1]). To
get volts and amperes, multiply by the UK-DALE House-2 calibration constants:
V_FACTOR = (2 ** 31) * 1.88296904357e-7 # ≈ 404.4
I_FACTOR = (2 ** 31) * 4.77518864497e-8 # ≈ 102.5
import numpy as np
from huggingface_hub import snapshot_download
root = snapshot_download(repo_id="Pybunny/nilmbench-ukdale", repo_type="dataset")
x = np.load(f"{root}/train/x_vi_6s.npy", mmap_mode="r")
labels = np.load(f"{root}/train/labels_and_index.npz", allow_pickle=True)
print(x.shape, labels["y_power"].shape, labels["class_names"])
NILMbench paper (2026), and the original UK-DALE dataset by Kelly & Knottenbelt (2015).
MIT for the processed splits and metadata. The underlying UK-DALE recordings are subject to their original license (CC-BY 4.0).