cyanfi commited on
Commit
ce7eaa8
·
verified ·
1 Parent(s): 213aa5c

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +82 -97
README.md CHANGED
@@ -1,100 +1,85 @@
1
  ---
2
- dataset_info:
3
- - config_name: count
4
- features:
5
- - name: list
6
- list: int64
7
- - name: question
8
- dtype: string
9
- - name: label
10
- dtype: int64
11
- - name: target
12
- dtype: int64
13
- splits:
14
- - name: test
15
- num_bytes: 25400
16
- num_examples: 200
17
- download_size: 14970
18
- dataset_size: 25400
19
- - config_name: max
20
- features:
21
- - name: list
22
- list: int64
23
- - name: question
24
- dtype: string
25
- - name: label
26
- dtype: int64
27
- splits:
28
- - name: test
29
- num_bytes: 21800
30
- num_examples: 200
31
- download_size: 13441
32
- dataset_size: 21800
33
- - config_name: min
34
- features:
35
- - name: list
36
- list: int64
37
- - name: question
38
- dtype: string
39
- - name: label
40
- dtype: int64
41
- splits:
42
- - name: test
43
- num_bytes: 21800
44
- num_examples: 200
45
- download_size: 13440
46
- dataset_size: 21800
47
- - config_name: sort
48
- features:
49
- - name: list
50
- list: int64
51
- - name: question
52
- dtype: string
53
- - name: label
54
- dtype: int64
55
- - name: k
56
- dtype: int64
57
- - name: ordinal
58
- dtype: string
59
- splits:
60
- - name: test
61
- num_bytes: 32762
62
- num_examples: 200
63
- download_size: 15776
64
- dataset_size: 32762
65
- - config_name: sum
66
- features:
67
- - name: list
68
- list: int64
69
- - name: question
70
- dtype: string
71
- - name: label
72
- dtype: int64
73
- splits:
74
- - name: test
75
- num_bytes: 21000
76
- num_examples: 200
77
- download_size: 13777
78
- dataset_size: 21000
79
  configs:
80
- - config_name: count
81
- data_files:
82
- - split: test
83
- path: count/test-*
84
- - config_name: max
85
- data_files:
86
- - split: test
87
- path: max/test-*
88
- - config_name: min
89
- data_files:
90
- - split: test
91
- path: min/test-*
92
- - config_name: sort
93
- data_files:
94
- - split: test
95
- path: sort/test-*
96
- - config_name: sum
97
- data_files:
98
- - split: test
99
- path: sum/test-*
100
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - arithmetic
9
+ - integer-arithmetic
10
+ - lm-eval-harness
11
+ - base-models
12
+ - list-aggregates
13
+ pretty_name: Numeric Mini
14
+ size_categories:
15
+ - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  configs:
17
+ - config_name: min
18
+ data_files:
19
+ - split: test
20
+ path: min/test-*
21
+ - config_name: max
22
+ data_files:
23
+ - split: test
24
+ path: max/test-*
25
+ - config_name: sum
26
+ data_files:
27
+ - split: test
28
+ path: sum/test-*
29
+ - config_name: count
30
+ data_files:
31
+ - split: test
32
+ path: count/test-*
33
+ - config_name: sort
34
+ data_files:
35
+ - split: test
36
+ path: sort/test-*
37
  ---
38
+
39
+ # numeric-mini
40
+
41
+ Fixed-NL-template integer aggregation over short lists. Built as
42
+ **tier 2** of the eval design in
43
+ [byte_v2/design/eval/design_v2.md](https://example.com) (internal).
44
+
45
+ The original spec called for sourcing these tasks from TreeAILab/NumericBench,
46
+ but NumericBench is MCQ-style with decimal operands and ability labels that
47
+ don't cleanly contain min/max/sum/count/sort over plain integer lists, so this
48
+ dataset is generated locally to match the spec's intent and the integer-only
49
+ constraint.
50
+
51
+ ## Configs
52
+
53
+ | config | template | n_test |
54
+ |--------|----------|-------:|
55
+ | `min` | `What is the minimum of the list [...]?` | 200 |
56
+ | `max` | `What is the maximum of the list [...]?` | 200 |
57
+ | `sum` | `What is the sum of the list [...]?` | 200 |
58
+ | `count` | `How many times does X appear in the list [...]?` | 200 |
59
+ | `sort` | `After sorting the list [...] in ascending order, what is the K-th element?` | 200 |
60
+
61
+ ## Construction
62
+
63
+ - List length **5**, operands sampled uniformly from `[10, 99]` (2-digit integers).
64
+ - `count`: target is drawn 50/50 from `{element of list, fresh integer not in list}`
65
+ to balance zero-count and positive-count cases.
66
+ - `sort`: K ∈ {1..5} uniform; the answer is the K-th element after ascending sort.
67
+
68
+ ## Schema
69
+
70
+ | field | type | example | description |
71
+ |------------|------|---------|-------------|
72
+ | `list` | list[int] | `[59, 63, 15, 43, 75]` | the input list |
73
+ | `question` | str | `"What is the minimum of the list [59, 63, 15, 43, 75]?"` | prompt |
74
+ | `label` | int | `15` | gold answer (integer) |
75
+ | `target` | int | `71` | (count only) the value to count |
76
+ | `k` | int | `3` | (sort only) 1-indexed K |
77
+ | `ordinal` | str | `"third"` | (sort only) ordinal word for K |
78
+
79
+ ## Usage
80
+
81
+ ```python
82
+ from datasets import load_dataset
83
+ ds = load_dataset("cyanfi/numeric-mini", "sum", split="test")
84
+ print(ds[0])
85
+ ```