mrtan commited on
Commit
91d7f6f
·
verified ·
1 Parent(s): 74cf12f

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +110 -0
README.md CHANGED
@@ -1,3 +1,113 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ task_categories:
6
+ - question-answering
7
+ - table-question-answering
8
+ tags:
9
+ - time-series
10
+ - natural-language-queries
11
+ - benchmark
12
+ - training-set
13
+ size_categories:
14
+ - n<1K
15
+ pretty_name: NLQTSBench-train
16
  ---
17
+
18
+ # NLQTSBench-train
19
+
20
+ Training-split companion to
21
+ [`mrtan/NLQTSBench`](https://huggingface.co/datasets/mrtan/NLQTSBench).
22
+ 220 natural-language-query / time-series tasks sampled from the same
23
+ candidate pool as the NLQTSBench test set, then filtered to be **disjoint
24
+ by `id`** from the test split.
25
+
26
+ Intended use: cold-start training of methodology skills for the
27
+ [Sonar-TS](https://github.com/...) framework. **Do not** use this split
28
+ for benchmarking — it overlaps the test set's *task templates* even
29
+ though no individual task `id` appears in both.
30
+
31
+ ## Files
32
+
33
+ ```
34
+ NLQTSBench-train/
35
+ ├── tasks.json 220 task records (one JSON list)
36
+ └── ts_data/
37
+ └── <id>.csv 220 raw time-series CSVs (one per task)
38
+ ```
39
+
40
+ ## Schema
41
+
42
+ Each entry in `tasks.json` has these fields:
43
+
44
+ | Field | Type | Description |
45
+ |----------------|----------------|-----------------------------------------------------------------------------|
46
+ | `id` | str | Unique task id, e.g. `L1_T1_Global_Aggregation_00014`. |
47
+ | `level` | int (1–4) | Reasoning level (paper Table 2). |
48
+ | `level_name` | str | Human-readable level name (`Basic Operations`, …). |
49
+ | `category` | str | Higher-level category (`Atomic Retrieval`, `Pattern Recognition`, …). |
50
+ | `subtask` | str | One of 10 sub-task labels (see counts below — Composite Trend is absent). |
51
+ | `question` | str | Natural-language query, includes the expected answer format. |
52
+ | `answer` | str | Ground-truth answer as a string (display form). |
53
+ | `ground_truth` | varies | Ground-truth value in its native Python type (number / list / dict). |
54
+ | `eval_metric` | str | One of `rel_acc`, `hit`, `iou`, `set_f1`, `report`. |
55
+ | `channel` | str / list | Channel name(s) referenced by the question. |
56
+ | `ts_data_path` | str | Relative path to the matching CSV under `ts_data/`. |
57
+ | `meta` | dict | Generation metadata (template args, source dataset). |
58
+
59
+ Each `ts_data/<id>.csv` is a wide table whose first column is `timestamp`
60
+ and remaining columns are numeric channels.
61
+
62
+ ## Sub-task distribution
63
+
64
+ | Sub-task | N |
65
+ |-------------------------|-----|
66
+ | Sliding Window | 38 |
67
+ | Interval Discovery | 33 |
68
+ | Temporal Localization | 31 |
69
+ | Global Aggregation | 28 |
70
+ | Causal Anomaly | 18 |
71
+ | Subsequence Matching | 16 |
72
+ | Contextual Anomaly | 14 |
73
+ | Insight Synthesis | 14 |
74
+ | Periodicity Detection | 14 |
75
+ | Shape Identification | 14 |
76
+ | **Composite Trend** | **0** |
77
+ | **Total** | **220** |
78
+
79
+ **Composite Trend is intentionally absent**: its candidate pool was
80
+ fully consumed by the test split with no disjoint tasks left over.
81
+
82
+ ## Disjointness with the test split
83
+
84
+ Tasks were sampled with a distinct seed and then any `id` that also
85
+ appears in [`mrtan/NLQTSBench`](https://huggingface.co/datasets/mrtan/NLQTSBench)
86
+ was dropped. The remaining 220 task `id`s do **not** overlap with the
87
+ test set.
88
+
89
+ ## Loading
90
+
91
+ ```python
92
+ from huggingface_hub import snapshot_download
93
+ snapshot_download(repo_id="mrtan/NLQTSBench-train",
94
+ repo_type="dataset",
95
+ local_dir="NLQTSBench-train")
96
+
97
+ import json, pandas as pd
98
+ tasks = json.load(open("NLQTSBench-train/tasks.json"))
99
+ df = pd.read_csv(f"NLQTSBench-train/{tasks[0]['ts_data_path']}")
100
+ ```
101
+
102
+ For the Sonar-TS framework, just run:
103
+
104
+ ```bash
105
+ python -m cold_start.download_train_data
106
+ ```
107
+
108
+ which pulls this dataset and builds per-task SQLite + SAX feature tables
109
+ locally under `cold_start/train_data/`.
110
+
111
+ ## License
112
+
113
+ Apache-2.0, matching the test-split licence.