johnahn commited on
Commit
a4bf73f
·
verified ·
1 Parent(s): f24ebd4

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +91 -0
README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pretty_name: MDK Mining Controller — Synthetic Telemetry & Features
4
+ tags:
5
+ - bitcoin-mining
6
+ - predictive-maintenance
7
+ - time-series
8
+ - synthetic-data
9
+ size_categories:
10
+ - 1M<n<10M
11
+ ---
12
+
13
+ # MDK Mining Controller — Data
14
+
15
+ Companion dataset for the [`mdk-mining-controller`](https://github.com/john-yo-ahn/mdk-mining-controller) prototype (3-week Tether MDK assignment).
16
+
17
+ ## What's here
18
+
19
+ | File | Size | What it is |
20
+ |---|---|---|
21
+ | `raw/mining_telemetry.parquet` | 150 MB | 5.2 M rows of 1-minute telemetry for 30 ASIC miners across 120 days. 21 columns: hashrate, power, voltage, frequency, temperature, ambient temp, operating mode, is_online, hardware_model_id, miner_id, timestamp, plus failure-scenario metadata. Output of `src/synthetic/generator.py`. |
22
+ | `raw/mdk.duckdb` | 201 MB | Same telemetry as the parquet, loaded into a DuckDB database. Used by the batch pipeline for fast columnar queries. Idempotent re-derivation from the parquet takes ~30 s. |
23
+ | `processed/features.v3.parquet` | 3.6 GB | 5.2 M rows × 175 features — the fully engineered feature matrix used to train the XGBoost + LSTM-AE models. Includes the TE KPI and its rolling / trend / correlation variants. Output of `src/pipeline/features.py:build_feature_matrix`. Rebuilding from raw costs ~25 min. |
24
+
25
+ All files are **reproducible from the repo's synthetic generator** — nothing here is real mining data. The dataset exists to let reviewers skip the 40-minute rebuild step.
26
+
27
+ ## Usage
28
+
29
+ Clone the code repo first:
30
+
31
+ ```bash
32
+ git clone https://github.com/john-yo-ahn/mdk-mining-controller
33
+ cd mdk-mining-controller
34
+ uv sync
35
+ ```
36
+
37
+ Then download this dataset into the expected layout:
38
+
39
+ ```bash
40
+ uv run python -c "
41
+ from huggingface_hub import snapshot_download
42
+ snapshot_download(
43
+ 'johnahn/mdk-mining-controller-data',
44
+ repo_type='dataset',
45
+ local_dir='data',
46
+ )
47
+ "
48
+ ```
49
+
50
+ Now the repo has the full `data/raw/` + `data/processed/` tree. Run:
51
+
52
+ ```bash
53
+ uv run mdk check # 13/13 pipeline invariants, ~11 min
54
+ uv run mdk validate # 4 end-to-end tests, ~9 min
55
+ uv run mdk # live Textual dashboard, loads real models
56
+ ```
57
+
58
+ ## Provenance & seeding
59
+
60
+ All artifacts were generated deterministically with `seed=42` across the generator, split, and model training. Reruns produce byte-identical metrics to the sidecar metadata in the code repo under `data/models/*.metadata.json`. The `mdk check` harness explicitly verifies this on every invocation.
61
+
62
+ ## Schema
63
+
64
+ ### `raw/mining_telemetry.parquet` (21 columns)
65
+
66
+ `miner_id`, `timestamp`, `hashrate_th`, `power_w`, `voltage_v`, `frequency_mhz`, `temperature_c`, `ambient_temperature_c`, `operating_mode`, `is_online`, `hardware_model_id`, `hardware_model`, `hash_board_serial`, `scenario_name`, `scenario_onset_step`, `scenario_duration`, `is_pre_failure`, `fan_rpm`, `error_count`, `voltage_sag`, `hashrate_error`.
67
+
68
+ ### `processed/features.v3.parquet` (175 columns)
69
+
70
+ Derived from the raw 21 + intermediate 34 columns. Categories:
71
+
72
+ - **Ratios** (~10): `efficiency_jth`, `temp_delta_c`, `power_per_ghz`, `voltage_deviation`, `hashrate_realization`, `te_base`, `te_adjusted`, `te_health`, …
73
+ - **Rolling statistics** (~80): `{metric}_roll_{60|360|10080}m_{mean|std|min|max}` for all 10 base signals
74
+ - **Trend features** (~20): linear-regression slopes and rate-of-change over 60/360-minute windows
75
+ - **Cross-signal correlations** (~15): voltage-temperature, power-hashrate, TE-voltage, etc. rolling correlations
76
+ - **Diurnal features** (~6): hour-of-day, day-of-week, sine/cosine encodings
77
+ - **Cross-miner features** (~10): container-level means and deviations from container baseline
78
+ - **Labels**: `is_pre_failure` (binary target), `failure_type` (multi-class for analysis)
79
+
80
+ Full schema enumerable via `build_feature_matrix` in `src/pipeline/features.py` in the code repo.
81
+
82
+ ## License
83
+
84
+ MIT. Same as the code repo.
85
+
86
+ ## Citation
87
+
88
+ Not peer-reviewed work — a prototype built against Tether's MDK assignment spec. If you reference it, a link back to both repos is appreciated:
89
+
90
+ - Code: https://github.com/john-yo-ahn/mdk-mining-controller
91
+ - Data: https://huggingface.co/datasets/johnahn/mdk-mining-controller-data