Datasets:

Modalities:
Text
Formats:
text
Libraries:
Datasets
License:
arubenruben's picture
Add Loading Script
798b5f8
|
raw
history blame
17.1 kB
metadata
license: mit
dataset_info:
  - config_name: algebra__linear_1d
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 538
        num_examples: 9
      - name: test
        num_bytes: 657
        num_examples: 10
    download_size: 98096
    dataset_size: 1195
  - config_name: algebra__linear_1d_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1270
        num_examples: 9
      - name: test
        num_bytes: 1332
        num_examples: 10
    download_size: 98096
    dataset_size: 2602
  - config_name: algebra__linear_2d
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 698
        num_examples: 9
      - name: test
        num_bytes: 787
        num_examples: 10
    download_size: 98096
    dataset_size: 1485
  - config_name: algebra__linear_2d_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1312
        num_examples: 9
      - name: test
        num_bytes: 1286
        num_examples: 10
    download_size: 98096
    dataset_size: 2598
  - config_name: algebra__polynomial_roots
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 861
        num_examples: 9
      - name: test
        num_bytes: 1005
        num_examples: 10
    download_size: 98096
    dataset_size: 1866
  - config_name: algebra__polynomial_roots_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1392
        num_examples: 9
      - name: test
        num_bytes: 1623
        num_examples: 10
    download_size: 98096
    dataset_size: 3015
  - config_name: algebra__sequence_next_term
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 702
        num_examples: 9
      - name: test
        num_bytes: 960
        num_examples: 10
    download_size: 98096
    dataset_size: 1662
  - config_name: algebra__sequence_nth_term
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1144
        num_examples: 9
      - name: test
        num_bytes: 1361
        num_examples: 10
    download_size: 98096
    dataset_size: 2505
  - config_name: arithmetic__add_or_sub
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 541
        num_examples: 9
      - name: test
        num_bytes: 623
        num_examples: 10
    download_size: 98096
    dataset_size: 1164
  - config_name: arithmetic__add_or_sub_in_base
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 560
        num_examples: 9
      - name: test
        num_bytes: 656
        num_examples: 10
    download_size: 98096
    dataset_size: 1216
  - config_name: arithmetic__add_sub_multiple
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 475
        num_examples: 9
      - name: test
        num_bytes: 580
        num_examples: 10
    download_size: 98096
    dataset_size: 1055
  - config_name: arithmetic__div
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 460
        num_examples: 9
      - name: test
        num_bytes: 526
        num_examples: 10
    download_size: 98096
    dataset_size: 986
  - config_name: arithmetic__mixed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 497
        num_examples: 9
      - name: test
        num_bytes: 647
        num_examples: 10
    download_size: 98096
    dataset_size: 1144
  - config_name: arithmetic__mul
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 413
        num_examples: 9
      - name: test
        num_bytes: 481
        num_examples: 10
    download_size: 98096
    dataset_size: 894
  - config_name: arithmetic__mul_div_multiple
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 524
        num_examples: 9
      - name: test
        num_bytes: 643
        num_examples: 10
    download_size: 98096
    dataset_size: 1167
  - config_name: arithmetic__nearest_integer_root
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 991
        num_examples: 9
      - name: test
        num_bytes: 1132
        num_examples: 10
    download_size: 98096
    dataset_size: 2123
  - config_name: arithmetic__simplify_surd
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1016
        num_examples: 9
      - name: test
        num_bytes: 1201
        num_examples: 10
    download_size: 98096
    dataset_size: 2217
  - config_name: calculus__differentiate
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1157
        num_examples: 9
      - name: test
        num_bytes: 1212
        num_examples: 10
    download_size: 98096
    dataset_size: 2369
  - config_name: calculus__differentiate_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1443
        num_examples: 9
      - name: test
        num_bytes: 1743
        num_examples: 10
    download_size: 98096
    dataset_size: 3186
  - config_name: comparison__closest
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 768
        num_examples: 9
      - name: test
        num_bytes: 930
        num_examples: 10
    download_size: 98096
    dataset_size: 1698
  - config_name: comparison__closest_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1309
        num_examples: 9
      - name: test
        num_bytes: 1418
        num_examples: 10
    download_size: 98096
    dataset_size: 2727
  - config_name: comparison__kth_biggest
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 741
        num_examples: 9
      - name: test
        num_bytes: 945
        num_examples: 10
    download_size: 98096
    dataset_size: 1686
  - config_name: comparison__kth_biggest_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1084
        num_examples: 9
      - name: test
        num_bytes: 1382
        num_examples: 10
    download_size: 98096
    dataset_size: 2466
  - config_name: comparison__pair
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 533
        num_examples: 9
      - name: test
        num_bytes: 654
        num_examples: 10
    download_size: 98096
    dataset_size: 1187
  - config_name: comparison__pair_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1097
        num_examples: 9
      - name: test
        num_bytes: 1365
        num_examples: 10
    download_size: 98096
    dataset_size: 2462
  - config_name: comparison__sort
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 673
        num_examples: 9
      - name: test
        num_bytes: 895
        num_examples: 10
    download_size: 98096
    dataset_size: 1568
  - config_name: comparison__sort_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1142
        num_examples: 9
      - name: test
        num_bytes: 1075
        num_examples: 10
    download_size: 98096
    dataset_size: 2217
  - config_name: measurement__conversion
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 710
        num_examples: 9
      - name: test
        num_bytes: 756
        num_examples: 10
    download_size: 98096
    dataset_size: 1466
  - config_name: measurement__time
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 627
        num_examples: 9
      - name: test
        num_bytes: 701
        num_examples: 10
    download_size: 98096
    dataset_size: 1328
  - config_name: numbers__base_conversion
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 557
        num_examples: 9
      - name: test
        num_bytes: 642
        num_examples: 10
    download_size: 98096
    dataset_size: 1199
  - config_name: numbers__div_remainder
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 652
        num_examples: 9
      - name: test
        num_bytes: 757
        num_examples: 10
    download_size: 98096
    dataset_size: 1409
  - config_name: numbers__div_remainder_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1081
        num_examples: 9
      - name: test
        num_bytes: 1358
        num_examples: 10
    download_size: 98096
    dataset_size: 2439
  - config_name: numbers__gcd
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 610
        num_examples: 9
      - name: test
        num_bytes: 700
        num_examples: 10
    download_size: 98096
    dataset_size: 1310
  - config_name: numbers__gcd_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1239
        num_examples: 9
      - name: test
        num_bytes: 1567
        num_examples: 10
    download_size: 98096
    dataset_size: 2806
  - config_name: numbers__is_factor
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 544
        num_examples: 9
      - name: test
        num_bytes: 607
        num_examples: 10
    download_size: 98096
    dataset_size: 1151
  - config_name: numbers__is_factor_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1073
        num_examples: 9
      - name: test
        num_bytes: 1198
        num_examples: 10
    download_size: 98096
    dataset_size: 2271
  - config_name: numbers__is_prime
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 570
        num_examples: 9
      - name: test
        num_bytes: 648
        num_examples: 10
    download_size: 98096
    dataset_size: 1218
  - config_name: numbers__is_prime_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1109
        num_examples: 9
      - name: test
        num_bytes: 1452
        num_examples: 10
    download_size: 98096
    dataset_size: 2561
  - config_name: numbers__lcm
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 697
        num_examples: 9
      - name: test
        num_bytes: 807
        num_examples: 10
    download_size: 98096
    dataset_size: 1504
  - config_name: numbers__lcm_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1382
        num_examples: 9
      - name: test
        num_bytes: 1163
        num_examples: 10
    download_size: 98096
    dataset_size: 2545
  - config_name: numbers__list_prime_factors
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 602
        num_examples: 9
      - name: test
        num_bytes: 715
        num_examples: 10
    download_size: 98096
    dataset_size: 1317
  - config_name: numbers__list_prime_factors_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1319
        num_examples: 9
      - name: test
        num_bytes: 1220
        num_examples: 10
    download_size: 98096
    dataset_size: 2539
  - config_name: numbers__place_value
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 662
        num_examples: 9
      - name: test
        num_bytes: 780
        num_examples: 10
    download_size: 98096
    dataset_size: 1442
  - config_name: numbers__place_value_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1219
        num_examples: 9
      - name: test
        num_bytes: 1371
        num_examples: 10
    download_size: 98096
    dataset_size: 2590
  - config_name: numbers__round_number
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 797
        num_examples: 9
      - name: test
        num_bytes: 844
        num_examples: 10
    download_size: 98096
    dataset_size: 1641
  - config_name: numbers__round_number_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1158
        num_examples: 9
      - name: test
        num_bytes: 1377
        num_examples: 10
    download_size: 98096
    dataset_size: 2535
  - config_name: polynomials__add
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1419
        num_examples: 9
      - name: test
        num_bytes: 1540
        num_examples: 10
    download_size: 98096
    dataset_size: 2959
  - config_name: polynomials__coefficient_named
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1163
        num_examples: 9
      - name: test
        num_bytes: 1441
        num_examples: 10
    download_size: 98096
    dataset_size: 2604
  - config_name: polynomials__collect
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 742
        num_examples: 9
      - name: test
        num_bytes: 917
        num_examples: 10
    download_size: 98096
    dataset_size: 1659
  - config_name: polynomials__compose
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1275
        num_examples: 9
      - name: test
        num_bytes: 1314
        num_examples: 10
    download_size: 98096
    dataset_size: 2589
  - config_name: polynomials__evaluate
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 625
        num_examples: 9
      - name: test
        num_bytes: 706
        num_examples: 10
    download_size: 98096
    dataset_size: 1331
  - config_name: polynomials__evaluate_composed
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1193
        num_examples: 9
      - name: test
        num_bytes: 1492
        num_examples: 10
    download_size: 98096
    dataset_size: 2685
  - config_name: polynomials__expand
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 913
        num_examples: 9
      - name: test
        num_bytes: 1014
        num_examples: 10
    download_size: 98096
    dataset_size: 1927
  - config_name: polynomials__simplify_power
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1155
        num_examples: 9
      - name: test
        num_bytes: 1481
        num_examples: 10
    download_size: 98096
    dataset_size: 2636
  - config_name: probability__swr_p_level_set
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1541
        num_examples: 9
      - name: test
        num_bytes: 1766
        num_examples: 10
    download_size: 98096
    dataset_size: 3307
  - config_name: probability__swr_p_sequence
    features:
      - name: question
        dtype: string
      - name: answer
        dtype: string
    splits:
      - name: train
        num_bytes: 1619
        num_examples: 9
      - name: test
        num_bytes: 1781
        num_examples: 10
    download_size: 98096
    dataset_size: 3400

To run generation code within 'mathematics_dataset\mathematics_dataset':

  • Activate python venv .\.venv\Scripts\activate
    • Requirements defined in requires.txt
  • Run python generate_to_file.py --output_dir ds to generate dataset to directory \ds

Had to change enconding when opening files to utf-8 so that some characters are allowed (ã õ é)

To obtain dataset with the correct amount of rows:

  • python generate_to_file.py --output_dir ds --per_train_module 1999998 --per_test_module 10000

This dataset creates train set (train-easy,train-medium,train-hard) and the creates extrapolation ("measure generalization along various axes of difficulty to beyond that seen during training") and interpolation ("test questions are distinct from the train questions") tests. On HugginFace only interpolate tests are used as test set.

Some tests will not work, since they rely on english terms.