alexjackson17 commited on
Commit
bea976b
·
verified ·
1 Parent(s): 6cb095e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +166 -0
README.md CHANGED
@@ -33,4 +33,170 @@ configs:
33
  path: data/train-*
34
  - split: test
35
  path: data/test-*
 
 
 
 
 
 
 
 
36
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  path: data/train-*
34
  - split: test
35
  path: data/test-*
36
+ license: mit
37
+ tags:
38
+ - countdown
39
+ - math
40
+ - reasoning
41
+ pretty_name: Countdown Numbers Game (uniformly random puzzles using countdown rules)
42
+ size_categories:
43
+ - 100K<n<1M
44
  ---
45
+
46
+ # Countdown Numbers Game Dataset
47
+
48
+ This dataset contains configurations and solutions for variations of the Countdown numbers game. Each example comprises a sequence of numbers, a target number, the computed solution (closest value), the arithmetic expression that achieves that value, the difference between the target and the computed value, and the final Countdown score.
49
+
50
+
51
+ ## HuggingFace Download Links
52
+
53
+ <div align="center">
54
+
55
+
56
+ | **Dataset Variant** | **Dataset Name** | **Download** |
57
+ | ------------------- | -------------------------- | --------------------------------------------------------------------------------------- |
58
+ | Random | `countdown-numbers-3-8` | [🤗 HuggingFace](https://huggingface.co/datasets/alexjackson17/countdown-numbers-3-8) |
59
+ | Random Solvable | `countdown-numbers-3-8-nz` | [🤗 HuggingFace](https://huggingface.co/datasets/alexjackson17/countdown-numbers-3-8-nz) |
60
+ | Coundown Game Rules | `countdown-numbers-6-gr` | [🤗 HuggingFace](https://huggingface.co/datasets/alexjackson17/countdown-numbers-6-gr) |
61
+
62
+
63
+ </div>
64
+
65
+
66
+ ---
67
+
68
+ ## Dataset Overview
69
+
70
+ Each data point in the dataset includes:
71
+
72
+ - **Numbers:**
73
+ A sequence of $n$ integers $s_1, s_2, \ldots, s_n$ where $s_i \in \{1, 2, \ldots, 100\}$ for all $i \in \{1, 2, \ldots, n\}$, and $n \in \{3, 4, \ldots, 8\}$.
74
+ (Note: In the traditional Countdown game, the numbers are subject to more specific restrictions.)
75
+
76
+ - **Target:**
77
+ An integer $t \in \{1, 2, \ldots, 999\}$. (For context, the standard Countdown game usually features targets from 101 and above.)
78
+
79
+ - **Closest:**
80
+ The value computed by a solver $r \in \{1, 2, \ldots, 999\}$ that is closest to the target number.
81
+
82
+ - **Expression:**
83
+ The arithmetic expression used to compute the closest value.
84
+ For instance, $((2 + 48) \times 5) \div 10$
85
+
86
+ - **Delta:**
87
+ The absolute difference between the target and the closest value, i.e. $|t - r|$.
88
+
89
+ - **Score:**
90
+ The Countdown score calculated as $\max(0, 10 - |t - r|)$.
91
+ This score reflects how close the computed value is to the target.
92
+
93
+ ---
94
+
95
+ ## Dataset Variants
96
+
97
+ This dataset is provided in three variants:
98
+
99
+ 1. **Random:**
100
+ Configurations and solutions generated by uniformly sampling and solving one million game instances, without additional restrictions.
101
+
102
+ 1. **Random Solvable (Score > 0):**
103
+ Configurations are generated by uniformly sampling numbers and then **rejecting** any sample that results in an unsolvable instance (i.e., a score of 0). This variant ensures that each instance has a solution that yields a positive score.
104
+
105
+ 1. **Countdown:**
106
+ Configurations generated by sampling **6 numbers** in the style of the British TV show *Countdown*.
107
+
108
+
109
+ ### Score Distributions
110
+
111
+ The following histograms show the distribution of scores for each dataset variant:
112
+
113
+ #### Random Variant
114
+
115
+ <img src="random_3_8_1m_score_distribution.png" width="600"/>
116
+
117
+
118
+ #### Random Solvable (Score > 0) Variant
119
+
120
+ <img src="random_solvable_3_8_1m_score_distribution.png" width="600" />
121
+
122
+ #### Countdown Game Rules
123
+
124
+ <img src="countdown_score_distribution.png" width="500"/>
125
+
126
+ ---
127
+
128
+ ## Generation Process
129
+
130
+ The dataset was created by:
131
+ - Uniformly sampling numbers within the specified ranges.
132
+ - Solving each sampled instance to determine the closest value, the corresponding expression, the difference from the target, and the score.
133
+ - For the **Random Solvable (Score > 0)** variant, rejection sampling was applied: instances that did not yield a positive score were discarded.
134
+
135
+ The train and test splits were created by randomly partitioning the instances into 80% training and 20% testing, using a stratified split based on the score and number of starting values.
136
+
137
+
138
+ ### Split Score/Size Distributions
139
+
140
+ The final distributions of scores and numbers are shown in the following histograms:
141
+
142
+ #### Random Variant
143
+
144
+ <img src="random_3_8_1m_distribution_comparison.png" width="600" />
145
+
146
+ #### Random Solvable (Score > 0) Variant
147
+
148
+ <img src="random_solvable_3_8_1m_distribution_comparison.png" width="600" />
149
+
150
+ #### Countdown Game Rules
151
+
152
+ <img src="countdown_random_1m_distribution_comparison.png" width="600" />
153
+
154
+ ---
155
+
156
+ ## How to Use the Dataset
157
+
158
+ You can load and use this dataset with the Hugging Face `datasets` library. For example:
159
+
160
+ ```python
161
+ from datasets import load_dataset
162
+
163
+ dataset = load_dataset("alexjackson17/countdown-numbers-6-gr")
164
+
165
+ # Example: Access the first entry in the training split
166
+ example = dataset["train"][0]
167
+ print("Numbers: ", example["starting"])
168
+ print("Target: ", example["target"])
169
+ print("Closest: ", example["closest"])
170
+ print("Expression: ", example["expression"])
171
+ print("Difference: ", example["delta"])
172
+ print("Score: ", example["score"])
173
+ ```
174
+
175
+ ---
176
+
177
+ ## Citation
178
+
179
+ If you use this dataset in your research or projects, please cite it as follows:
180
+
181
+ ```bibtex
182
+ @misc{jackson2025countdown,
183
+ title = {Countdown Numbers Game Dataset},
184
+ author = {Alex Jackson},
185
+ year = {2025},
186
+ note = {Released under the MIT License},
187
+ }
188
+ ```
189
+
190
+ ---
191
+
192
+ ## Funding Attribution
193
+
194
+ This work was supported by UK Research and Innovation [grant number EP/S023356/1], in the UKRI Centre for Doctoral Training in Safe and Trusted Artificial Intelligence ([www.safeandtrustedai.org](https://www.safeandtrustedai.org)).
195
+
196
+ ---
197
+
198
+ ## License
199
+
200
+ This dataset is released under the MIT License. See the [LICENSE](LICENSE) file for more information.
201
+
202
+ For questions, feedback, or further information, please contact [Alex Jackson](mailto:[email protected]).