Dataset Preview Go to dataset viewer
question (string)answer (string)
b'Solve -282*d + 929 - 178 = -1223 for d.\n'
b'7\n'
b'Solve 49*l + 45*l - 125 - 63 = 0 for l.\n'
b'2\n'
b'Solve -64*t + 1387 - 848 + 933 = 0 for t.\n'
b'23\n'
b'Solve 75*g = 192*g - 71*g - 79*g - 264 for g.\n'
b'-8\n'
b'Solve -34*v + 232*v + 52351 = 48985 for v.\n'
b'-17\n'
b'Solve 21*w + 26*w - 9*w - 3*w + 980 = 0 for w.\n'
b'-28\n'
b'Solve -21*v - 96 = 156 for v.\n'
b'-12\n'
b'Solve -12*t - 4482 = 64*t - 383*t + 141*t for t.\n'
b'27\n'
b'Solve -516 = -106*h + 4183 - 247 for h.\n'
b'42\n'
b'Solve -5437 = 149*q - 2717 + 2942 for q.\n'
b'-38\n'
b'Solve -10500 = -3300*p + 1800*p for p.\n'
b'7\n'
b'Solve -351*s - 5051 = 586*s - 623 + 6816 for s.\n'
b'-12\n'
b'Solve 1633 = 327*u - 891 - 944 - 1110 for u.\n'
b'14\n'
b'Solve 8*x + 77 = -7*x - 158 + 70 for x.\n'
b'-11\n'
b'Solve -51*u + 22*u + 729 = -79*u - 1171 for u.\n'
b'-38\n'
b'Solve 0 = 4018*q - 4444 - 3592 for q.\n'
b'2\n'
b'Solve 34338*y = 34271*y - 3216 for y.\n'
b'-48\n'
b'Solve -12463 - 56347 = -2338*d + 58334 - 12582 for d.\n'
b'49\n'
b'Solve 315*k + 6462 + 1204 = -162*k - 6167 for k.\n'
b'-29\n'
b'Solve -5444 = -458*f - 25596 for f.\n'
b'-44\n'
b'Solve 1407 = -141*f + 2112 for f.\n'
b'5\n'
b'Solve h - h - 13*h + h = 540 for h.\n'
b'-45\n'
b'Solve 0 = 49560*f - 49522*f - 1102 for f.\n'
b'29\n'
b'Solve 1106*r + 29369 = 434*r + 1145 for r.\n'
b'-42\n'
b'Solve 0 = -254*s - 44133 + 46673 for s.\n'
b'10\n'
b'Solve 2857*n - 2677*n + 1260 = 0 for n.\n'
b'-7\n'
b'Solve 159 = 58*a - 146 - 118 + 17 for a.\n'
b'7\n'
b'Solve 0 = 81*q + 8096 - 4451 for q.\n'
b'-45\n'
b'Solve 1308*j = -21443 - 26953 for j.\n'
b'-37\n'
b'Solve -71*a - 2546 = -108*a - 97*a for a.\n'
b'19\n'
b'Solve 0*t - 33*t - 83 + 964 = -736 for t.\n'
b'49\n'
b'Solve -22*k = 166 + 57 - 25 for k.\n'
b'-9\n'
b'Solve -39*o - 99*o + 67 = 111*o + 814 for o.\n'
b'-3\n'
b'Solve 237 = 14*g + 791 - 134 for g.\n'
b'-30\n'
b'Solve 12655 = -131*z - 217*z - 14*z + 1071 for z.\n'
b'-32\n'
b'Solve -243*n + 1512 = 68*n - 59*n for n.\n'
b'6\n'
b'Solve 307*b + 88 = 195 + 1121 for b.\n'
b'4\n'
b'Solve -1711*p + 520 + 1435 = -1626*p for p.\n'
b'23\n'
b'Solve 111*o - 341*o + 900 = -135*o - 120*o for o.\n'
b'-36\n'
b'Solve -61*n = 183*n + 1440*n + 8420 for n.\n'
b'-5\n'
b'Solve 0 = -11*u - 10394 + 9877 for u.\n'
b'-47\n'
b'Solve 0 = 17*y + 6898 - 6473 for y.\n'
b'-25\n'
b'Solve -591*v = -188*v - 192 - 15693 + 1780 for v.\n'
b'35\n'
b'Solve -780*h = -263*h + 19129 for h.\n'
b'-37\n'
b'Solve -253*i + 2769 - 14660 = 0 for i.\n'
b'-47\n'
b'Solve 2959*b + 4245 + 11493 = -4975 for b.\n'
b'-7\n'
b'Solve 14263 - 17047 = -87*s for s.\n'
b'32\n'
b'Solve 0 = 2885*i + 3042 + 20933 + 47695 + 40845 for i.\n'
b'-39\n'
b'Solve 0 = 1102422*q - 1102381*q - 1968 for q.\n'
b'48\n'
b'Solve 0 = -i - 91*i - 1598*i - 64220 for i.\n'
b'-38\n'
b'Solve -5561 = -1733*b - 753*b - 21099 - 36668 for b.\n'
b'-21\n'
b'Solve 19*v - 316 - 142 = 151 + 75 for v.\n'
b'36\n'
b'Solve 62*a + 4*a - 3*a + 2480 = a for a.\n'
b'-40\n'
b'Solve -7*o - 13*o = 672 - 654 - 698 for o.\n'
b'34\n'
b'Solve -304*a = 1517*a + 3642 for a.\n'
b'-2\n'
b'Solve 32*b + 36*b + 280 = -22*b + 34*b for b.\n'
b'-5\n'
b'Solve -6041*a + 6164*a + 738 = 0 for a.\n'
b'-6\n'
b'Solve 190*v + 2901 = -902*v + 144*v - 19*v for v.\n'
b'-3\n'
b'Solve -1072*f - 48125 = -8461 for f.\n'
b'-37\n'
b'Solve 148*q - 2571 + 501 = -91*q + 32*q for q.\n'
b'10\n'
b'Solve -98317*p + 98094*p - 8697 = 0 for p.\n'
b'-39\n'
b'Solve 1129 = 112*g + 5497 for g.\n'
b'-39\n'
b'Solve 34934 = -2069*g - 1059 + 4958 for g.\n'
b'-15\n'
b'Solve -1004*k - 10471 + 2408 - 15049 = -362*k for k.\n'
b'-36\n'
b'Solve -370*j = 560*j + 8207 + 3883 for j.\n'
b'-13\n'
b'Solve -171 + 315 + 171 = -63*g for g.\n'
b'-5\n'
b'Solve -77945*l + 77956*l - 62 + 370 = 0 for l.\n'
b'-28\n'
b'Solve 0 = -118*a + 264*a + 3942 for a.\n'
b'-27\n'
b'Solve -93*n + 1008 = 18*n + 33*n for n.\n'
b'7\n'
b'Solve -558 = -24*n + 186*n + 48*n - 5388 for n.\n'
b'23\n'
b'Solve 82*m - 2*m - 133*m = 142*m - 2925 for m.\n'
b'15\n'
b'Solve -158*s + 63*s - 2446 = -261 for s.\n'
b'-23\n'
b'Solve 159*c + 118*c - 3317 = -1048 + 1055 for c.\n'
b'12\n'
b'Solve 0 = -182*n + 2925 - 4563 for n.\n'
b'-9\n'
b'Solve 739*v - 364*v = -109*v - 913*v - 1397 for v.\n'
b'-1\n'
b'Solve 6*p - 105*p - 1644 = 1920 for p.\n'
b'-36\n'
b'Solve -1334*l - 1365*l = -2753*l + 1350 for l.\n'
b'25\n'
b'Solve -6*s = -31*s - 728*s + 7075 + 14009 for s.\n'
b'28\n'
b'Solve 0 = -9*y + 859 - 1273 for y.\n'
b'-46\n'
b'Solve 14*w - 85*w + 17*w + 20*w + 272 = 0 for w.\n'
b'8\n'
b'Solve -117*z - 11214 = -4*z + 66*z + 88*z for z.\n'
b'-42\n'
b'Solve 665 - 1356 = 71*c - 478 for c.\n'
b'-3\n'
b'Solve -71*z - 13*z + 6*z + 380 + 400 = 0 for z.\n'
b'10\n'
b'Solve 1898 = -2633*x - 831 - 2537 for x.\n'
b'-2\n'
b'Solve 1516*r = 2372*r - 35096 for r.\n'
b'41\n'
b'Solve -292*b = 6180 - 12580 - 7616 for b.\n'
b'48\n'
b'Solve 813*m = -187*m - 28000 for m.\n'
b'-28\n'
b'Solve 66*u - 1478 - 1624 = 0 for u.\n'
b'47\n'
b'Solve 2999*w - 88874 + 11332 = 63411 for w.\n'
b'47\n'
b'Solve -2048*c + 5277*c = -22603 for c.\n'
b'-7\n'
b'Solve -1114*i + 2193*i + 580 = 1099*i for i.\n'
b'29\n'
b'Solve -6930 = 475*z - 706*z for z.\n'
b'30\n'
b'Solve 2328 = 89*h + 179*h + 23*h for h.\n'
b'8\n'
b'Solve 52*x = -152*x - 79*x + 21018 - 8283 for x.\n'
b'45\n'
b'Solve -62*i + 1362 + 297 = 109 for i.\n'
b'25\n'
b'Solve -246*w - 53*w + 675*w = -520*w - 33152 for w.\n'
b'-37\n'
b'Solve 8549 = 905*t + 1017*t - 8749 for t.\n'
b'9\n'
b'Solve 27719 = 322*y + 22245 for y.\n'
b'17\n'
b'Solve -25895 - 4396 = -967*b + 5458 + 6799 for b.\n'
b'44\n'
b'Solve -15996*l - 6058 = -16229*l for l.\n'
b'26\n'
End of preview (truncated to 100 rows)

Dataset Card for "math_dataset"

Dataset Summary

Mathematics database.

This dataset code generates mathematical question and answer pairs, from a range of question types at roughly school-level difficulty. This is designed to test the mathematical learning and algebraic reasoning skills of learning models.

Original paper: Analysing Mathematical Reasoning Abilities of Neural Models (Saxton, Grefenstette, Hill, Kohli).

Example usage: train_examples, val_examples = datasets.load_dataset( 'math_dataset/arithmetic__mul', split=['train', 'test'], as_supervised=True)

Supported Tasks and Leaderboards

More Information Needed

Languages

More Information Needed

Dataset Structure

Data Instances

algebra__linear_1d

  • Size of downloaded dataset files: 2225.00 MB
  • Size of the generated dataset: 88.31 MB
  • Total amount of disk used: 2313.31 MB

An example of 'train' looks as follows.


algebra__linear_1d_composed

  • Size of downloaded dataset files: 2225.00 MB
  • Size of the generated dataset: 191.29 MB
  • Total amount of disk used: 2416.29 MB

An example of 'train' looks as follows.


algebra__linear_2d

  • Size of downloaded dataset files: 2225.00 MB
  • Size of the generated dataset: 121.51 MB
  • Total amount of disk used: 2346.51 MB

An example of 'train' looks as follows.


algebra__linear_2d_composed

  • Size of downloaded dataset files: 2225.00 MB
  • Size of the generated dataset: 224.68 MB
  • Total amount of disk used: 2449.68 MB

An example of 'train' looks as follows.


algebra__polynomial_roots

  • Size of downloaded dataset files: 2225.00 MB
  • Size of the generated dataset: 156.41 MB
  • Total amount of disk used: 2381.41 MB

An example of 'train' looks as follows.


Data Fields

The data fields are the same among all splits.

algebra__linear_1d

  • question: a string feature.
  • answer: a string feature.

algebra__linear_1d_composed

  • question: a string feature.
  • answer: a string feature.

algebra__linear_2d

  • question: a string feature.
  • answer: a string feature.

algebra__linear_2d_composed

  • question: a string feature.
  • answer: a string feature.

algebra__polynomial_roots

  • question: a string feature.
  • answer: a string feature.

Data Splits

name train test
algebra__linear_1d 1999998 10000
algebra__linear_1d_composed 1999998 10000
algebra__linear_2d 1999998 10000
algebra__linear_2d_composed 1999998 10000
algebra__polynomial_roots 1999998 10000

Dataset Creation

Curation Rationale

More Information Needed

Source Data

Initial Data Collection and Normalization

More Information Needed

Who are the source language producers?

More Information Needed

Annotations

Annotation process

More Information Needed

Who are the annotators?

More Information Needed

Personal and Sensitive Information

More Information Needed

Considerations for Using the Data

Social Impact of Dataset

More Information Needed

Discussion of Biases

More Information Needed

Other Known Limitations

More Information Needed

Additional Information

Dataset Curators

More Information Needed

Licensing Information

More Information Needed

Citation Information


@article{2019arXiv,
  author = {Saxton, Grefenstette, Hill, Kohli},
  title = {Analysing Mathematical Reasoning Abilities of Neural Models},
  year = {2019},
  journal = {arXiv:1904.01557}
}

Contributions

Thanks to @patrickvonplaten, @lewtun, @thomwolf for adding this dataset.

Update on GitHub
Papers with Code