Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,25 +1,54 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
- name: type
|
| 9 |
-
dtype: string
|
| 10 |
-
- name: solution
|
| 11 |
-
dtype: string
|
| 12 |
-
- name: answer
|
| 13 |
-
dtype: string
|
| 14 |
-
splits:
|
| 15 |
-
- name: train
|
| 16 |
-
num_bytes: 9452394
|
| 17 |
-
num_examples: 12000
|
| 18 |
-
download_size: 4601327
|
| 19 |
-
dataset_size: 9452394
|
| 20 |
-
configs:
|
| 21 |
-
- config_name: default
|
| 22 |
-
data_files:
|
| 23 |
-
- split: train
|
| 24 |
-
path: data/train-*
|
| 25 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- question-answering
|
| 6 |
+
language:
|
| 7 |
+
- en
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
+
|
| 10 |
+
# MATH (minus MATH-500)
|
| 11 |
+
|
| 12 |
+
This dataset is derived from the original MATH dataset by Hendrycks et al.
|
| 13 |
+
([qwedsacf/competition_math](https://huggingface.co/datasets/qwedsacf/competition_math)) with all problems from the MATH-500 benchmark set removed.
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
## Construction
|
| 17 |
+
|
| 18 |
+
- Source: 12,500 problems from the MATH dataset by Hendrycks et al. ([qwedsacf/competition_math](https://huggingface.co/datasets/qwedsacf/competition_math))
|
| 19 |
+
- Benchmark held out: 500 problems from the MATH-500 dataset ([HuggingFaceH4/MATH-500](https://huggingface.co/datasets/HuggingFaceH4/MATH-500))
|
| 20 |
+
- Matching criterion: exact match on the `problem` field (see https://github.com/rasbt/math_full_minus_math500 for code to prepare the dataset)
|
| 21 |
+
- Remaining size: 12,000 problems
|
| 22 |
+
- Additionally, an `"answer"` field was added to the entries in the MATH dataset that contains the short answer similar to MATH-500
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
## Fields
|
| 26 |
+
|
| 27 |
+
Each example contains:
|
| 28 |
+
- `problem`: math problem statement
|
| 29 |
+
- `solution`: full worked solution
|
| 30 |
+
- `answer`: extracted final answer using `extract_final_candidate` function from the [reasoning-from-scratch](https://github.com/rasbt/reasoning-from-scratch) Python package (matches those in the MATH-500 dataset)
|
| 31 |
+
- `subject`: math subject
|
| 32 |
+
- `level`: difficulty level
|
| 33 |
+
- `unique_id`: original problem identifier
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
## Intended use
|
| 37 |
+
|
| 38 |
+
This dataset is intended for training only.
|
| 39 |
+
Evaluation should be performed on MATH-500, which is excluded.
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
## Usage
|
| 43 |
+
|
| 44 |
+
```python
|
| 45 |
+
from datasets import load_dataset
|
| 46 |
+
|
| 47 |
+
dataset = load_dataset(
|
| 48 |
+
"rasbt/math_full_minus_math500",
|
| 49 |
+
split="train"
|
| 50 |
+
)
|
| 51 |
+
|
| 52 |
+
print(len(dataset))
|
| 53 |
+
print(dataset[0].keys())
|
| 54 |
+
```
|