Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
1K - 10K
Tags:
mathematics
License:
dataset_info: | |
features: | |
- name: id | |
dtype: string | |
- name: query | |
dtype: string | |
- name: query4test | |
dtype: bool | |
- name: query_src_agent | |
dtype: string | |
- name: query_src_method | |
dtype: string | |
- name: domain | |
dtype: string | |
- name: stage | |
dtype: string | |
- name: gt_ans | |
dtype: string | |
- name: query_metadata | |
struct: | |
- name: n_step | |
dtype: int64 | |
- name: resp | |
dtype: string | |
- name: resp_src_agent | |
dtype: string | |
- name: resp_src_method | |
dtype: string | |
- name: ans | |
dtype: string | |
- name: ans_correct | |
dtype: bool | |
- name: ration_type | |
dtype: string | |
- name: proc_correct_prob | |
dtype: float64 | |
- name: resp_metadata | |
struct: | |
- name: n_step | |
dtype: int64 | |
splits: | |
- name: train | |
num_bytes: 4970081.335646042 | |
num_examples: 7473 | |
download_size: 2218640 | |
dataset_size: 4970081.335646042 | |
configs: | |
- config_name: default | |
data_files: | |
- split: train | |
path: data/train-* | |
license: mit | |
task_categories: | |
- text-generation | |
language: | |
- en | |
tags: | |
- mathematics | |
pretty_name: GSM8K (Fixed) | |
size_categories: | |
- 1K<n<10K | |
# GSM8K (Fixed) | |
Some **erroneous labels** exist in the GSM8K dataset. | |
This dataset is fixed from https://github.com/openai/grade-school-math/blob/master/grade_school_math/data/train.jsonl with the code appended at the end. | |
The errors are located by delving into **unreasonably low pass rates by the strong DeepSeekMath-7B-RL** and hopefully should be exhaustive. | |
This dataset is used by [the **🎯DART-Math** project](https://github.com/hkust-nlp/dart-math) to synthesize data. | |
> [!WARNING] | |
> ⚠️ Only the **training** set has been fixed so far. | |
```python | |
for dp in collected_dps: | |
if dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:167": | |
# Janet filmed a new movie that is 60% longer than her previous 2-hour long movie. Her previous movie cost $50 per minute to film, and the newest movie cost twice as much per minute to film as the previous movie. What was the total amount of money required to film Janet's entire newest film? | |
dp["resp"] = ( | |
"The first movie was 2*60=120 minutes\nSo this movie is 120*.6=72 minutes longer\nSo this movie is 192 minutes\nIt also cost 50*2=$100 per minute to film\nSo it cost 192*100=$19200" | |
) | |
dp["ans"] = dp["gt_ans"] = "19200" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:474": | |
# A club with 30 members ordered fruit juices. Two-fifths of them ordered lemon juice. One-third of the remaining members ordered mango juice, and the rest ordered orange juice. How many members ordered orange juice? | |
dp["resp"] = ( | |
"30 x 2/5 = 12 members ordered lemon juice.\nSo, 30 - 12 = 18 members did not order lemon juice.\nSince 1/3 of the remaining ordered mango juice, then 18 x 1/3 = 6 members ordered mango juice.\nTherefore, 18 - 6 = 12 members ordered orange juice." | |
) | |
dp["ans"] = dp["gt_ans"] = "12" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:1081": | |
# John has 2 hives of bees. One of the hives has 1000 bees and produces 500 liters of honey. The second has 20% fewer bees but each bee produces 40% more honey. How much honey does he produce? | |
dp["resp"] = ( | |
"The second hive has 20/100*1000 = 200 fewer bees.\nThis translates to 1000-200 = 800 bees.\nEach bee in the first hive produces 500/1000 = 0.5 liters\nThe second hive has bees each producing 1.4*0.5 = 0.7 liters\nThe total amount of honey produces by the bees in the second hive is 0.7*800 = 560\nThe total honey produced is 500+560 = 1060 liters" | |
) | |
dp["ans"] = dp["gt_ans"] = "1060" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:2338": | |
# A bottle can hold 2 cups of water. How many cups of water are needed to fill up 10 whole bottles and 5 half-capacity bottles? | |
dp[ | |
"resp" | |
] = r"""For 10 whole bottles, you will need 10*2=20 cups of water. | |
With 5 half-capacity bottles, it requires 5*1=5 cups of water. | |
In total, you need to have 20+5=25 cups of water to fill them all.""" | |
dp["ans"] = dp["gt_ans"] = "25" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:2620": | |
# Ryan started with 36 tokens at the arcade. Ryan wasted a third of his tokens on Pac-Man, a fourth of his tokens on Candy Crush, and 7 on Ski-ball. Then, his parents bought him seven times as many tokens as he spent on Ski-ball. How many tokens did Ryan end up with? | |
dp[ | |
"resp" | |
] = r"""Ryan used 36/3 = 12 tokens on Pac-Man. | |
Ryan used 36/4 = 9 tokens on Candy Crush. | |
Ryan used a total of 12+9+7 = 28 tokens on all three games. | |
Ryan had 36-28 = 8 tokens left. | |
Ryan’s parents bought him 7*7 = 49 more tokens. | |
Ryan had 8+49 = 57 tokens after his parents bought him some.""" | |
dp["ans"] = dp["gt_ans"] = "57" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:2770": | |
# Robert and Teddy are planning to buy snacks for their friends. Robert orders five boxes of pizza at $10 each box and ten cans of soft drinks at $2 each. Teddy buys six hamburgers at $3 each and an additional ten cans of soft drinks. How much do they spend in all? | |
dp["ans"] = dp["gt_ans"] = "108" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:3263": | |
# Andy gets a cavity for every 4 candy canes he eats. He gets 2 candy canes from his parents and 3 candy canes each from 4 teachers. Then he uses his allowance to buy 1/7 as many candy canes as he was given. How many cavities does he get from eating all his candy canes? | |
dp["ans"] = dp["gt_ans"] = "4" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:3529": | |
# During one game, a total of 50 people attended a baseball team’s games. Forty percent and thirty-four percent of the audiences are supporters of the first and second teams, respectively. How many people attended the game did not support either of the teams? | |
dp[ | |
"resp" | |
] = r"""50 x 40/100 = 20 people support the first team. | |
50 x 34/100 = 17 people support the second team. | |
So, a total of 20 + 17 = 37 people supported the first and second teams. | |
Thus, 50 - 37 = 13 people did not support either team.""" | |
dp["ans"] = dp["gt_ans"] = "13" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:3995": | |
# Kimiko is retiling her kitchen floor. Each tile is 6 square inches. If her kitchen is 48 inches by 72 inches, how many tiles does Kimiko need to buy? | |
# "First figure out how many tiles are in one row by dividing the kitchen's width by each tile's width: 48 inches / 6 inches/tile = 8 tiles in one row\nThen figure out how many rows of tiles there are by dividing the kitchen's height by each tile's height: 72 inches / 6 inches/tile = 12 rows of tiles\nThen multiply the number of rows by the number of tiles per row to find the total number of tiles Kimiko needs to buy: 8 tiles/row * 12 rows = 96 tiles" | |
dp[ | |
"resp" | |
] = r"""To find out how many tiles Kimiko needs, we first need to calculate the total area of her kitchen floor in square inches. | |
The area of the kitchen floor is given by the length multiplied by the width: | |
Area = Length × Width | |
So, for Kimiko's kitchen: | |
Area = 48 inches × 72 inches | |
Now, let's calculate: | |
Area = 48 inches × 72 inches = 3456 square inches | |
Now, we need to find out how many 6-square-inch tiles can fit into this total area. We can do this by dividing the total area by the area of each tile: | |
Number of tiles = Total area / Area of each tile | |
Number of tiles = 3456 square inches / 6 square inches per tile | |
Number of tiles ≈ 576 | |
So, Kimiko needs to buy approximately 576 tiles to retile her kitchen floor.""" | |
dp["ans"] = dp["gt_ans"] = "576" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:4099": | |
# Big Dig Mining Company mines three different types of ore: copper, iron, and nickel. Across all their mines, 10% of their output is nickel, 60% is iron, and the rest is copper. They mine 720 tons of nickel a day. How many tons of copper does Big Dig Mining Company mine daily? | |
# 'Let R be the total ore output of the company.\nOf Big Dig’s output, 100 - 10 - 60 = 30% is nickel.\nSince 720 is 60% of 100% of their output, 720 / R = 60 / 100.\nThus, Big Dig mines R = 100 * 720 / 60 = 1200 tons of ore daily.\nTherefore, Big Dig mines 1200 * 30 / 100 = 360 tons of copper daily.' | |
dp[ | |
"resp" | |
] = r"""Let R be the total ore output of the company. | |
Of Big Dig’s output, 100 - 10 - 60 = 30% is nickel. | |
Since 720 is 10% of 100% of their output, 720 / R = 10 / 100. | |
Thus, Big Dig mines R = 100 * 720 / 10 = 7200 tons of ore daily. | |
Therefore, Big Dig mines 7200 * 30 / 100 = 360 tons of copper daily.""" | |
dp["ans"] = dp["gt_ans"] = "2160" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:4105": | |
# Andrew eats 14 donuts on Monday, and half as many on Tuesday. On Wednesday Andrew eats 4 times as many as he did on Monday. How many donuts did Andrew eat total in the three days? | |
# 'Monday:14\nTuesday:14/2=7\nWednesday:4(7)=28\nTotal:14+7+28=49 donuts' | |
dp[ | |
"resp" | |
] = r"""Monday:14 | |
Tuesday:14/2=7 | |
Wednesday:4*14=56 | |
Total:14+7+56=77 donuts""" | |
dp["ans"] = dp["gt_ans"] = "77" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:4796": | |
# In a yard, the number of tanks is five times the number of trucks. If there are 20 trucks in the yard, calculate the total number of tanks and trucks in the yard. | |
# 'There are 5*20 = 100 tanks in the yard.\nAltogether, there are 100+20 = 120 trucks and tanks in the yard.' | |
dp["ans"] = dp["gt_ans"] = "120" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:5598": | |
# Mary just arrived at the beach. She has 4 times as many towels as Frances does. The total weight of their towels is 60 pounds. If Mary has 24 towels, how much do Frances's towels weigh in ounces? | |
# 'Frances has 24/4 = 6 towels.\nThey have 24+6=30 towels.\nEach towel weighs 60/30=2 pounds.\nFrances’s towels weigh a total of 2*4 = 8 pounds\nFrances’s towels weigh a total of 8*16 = 128 ounces' | |
dp[ | |
"resp" | |
] = r"""Frances has 24/4 = 6 towels. | |
They have 24+6=30 towels. | |
Each towel weighs 60/30=2 pounds. | |
Frances’s towels weigh a total of 2*6 = 12 pounds | |
Frances’s towels weigh a total of 12*16 = 192 ounces""" | |
dp["ans"] = dp["gt_ans"] = "192" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:6768": | |
# Kate's hair is half as long as Emily's hair. Emily’s hair is 6 inches longer than Logan's hair. If Logan hair is 20 inches, how many inches is Kate’s hair? | |
# "Emily’s hair is 20-6 = 14 inches long.\nKate's hair 14/2= 7 inches long." | |
dp[ | |
"resp" | |
] = r"""Emily’s hair is 20+6 = 26 inches long. | |
Kate's hair 26/2= 13 inches long.""" | |
dp["ans"] = dp["gt_ans"] = "13" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:7182": | |
# If you double a number and add 5 to the result, then that's 20 more than half of the original number. What's the original number? | |
# 'Let x be the original number.\n2*x+5=20+x/2\n2*x-x/2=15\n4*x-x=30\n3*x=30\nx=10' | |
dp["ans"] = dp["gt_ans"] = "10" | |
elif dp["id"] == "grade-school-math/grade_school_math/data/train.jsonl:7401": | |
# Mr. Finnegan has 3 tanks with a capacity of 7000 gallons, 5000 gallons, and 3000 gallons, respectively. If he fills the first tank up to 3/4 full, the second tank with water up to 4/5 of its capacity, and the third tank up to half of its capacity, how many gallons in total are in the tanks? | |
# 'The capacity of the first tank is 7000 gallons, and if it is filled up to 3/4 full, it carries 3/4*7000 = 5250 gallons.\nWhen the second tank is filled up to 4/5 of its capacity, it carries 4/5*5000 = 4000 gallons.\nThe total amount of water in the first two tanks is 5250+4000 = 9250 gallons.\nIf Mr. Finnegan fills the third tank with water up to half its capacity, the tank fills up with 1/2*3000 = 1500 gallons.\nIn total, the three tanks have 9350+1500 = 10850 gallons of water.' | |
dp[ | |
"resp" | |
] = r"""The capacity of the first tank is 7000 gallons, and if it is filled up to 3/4 full, it carries 3/4*7000 = 5250 gallons. | |
When the second tank is filled up to 4/5 of its capacity, it carries 4/5*5000 = 4000 gallons. | |
The total amount of water in the first two tanks is 5250+4000 = 9250 gallons. | |
If Mr. Finnegan fills the third tank with water up to half its capacity, the tank fills up with 1/2*3000 = 1500 gallons. | |
In total, the three tanks have 9250+1500 = 10750 gallons of water.""" | |
dp["ans"] = dp["gt_ans"] = "10750" | |
``` | |