- Description:
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 = tfds.load(
'math_dataset/arithmetic__mul',
split=['train', 'test'],
as_supervised=True)
Source code:
tfds.text.MathDataset
Versions:
1.0.0
(default): No release notes.
Download size:
2.17 GiB
Dataset size:
Unknown size
Auto-cached (documentation): Unknown
Splits:
Split | Examples |
---|---|
'test' |
10,000 |
'train' |
1,999,998 |
- Feature structure:
FeaturesDict({
'answer': Text(shape=(), dtype=tf.string),
'question': Text(shape=(), dtype=tf.string),
})
- Feature documentation:
Feature | Class | Shape | Dtype | Description |
---|---|---|---|---|
FeaturesDict | ||||
answer | Text | tf.string | ||
question | Text | tf.string |
Supervised keys (See
as_supervised
doc):('question', 'answer')
Figure (tfds.show_examples): Not supported.
Citation:
@article{2019arXiv,
author = {Saxton, Grefenstette, Hill, Kohli},
title = {Analysing Mathematical Reasoning Abilities of Neural Models},
year = {2019},
journal = {arXiv:1904.01557}
}
mathdataset/algebra_linear_1d (default config)
- Examples (tfds.as_dataframe):
mathdataset/algebra_linear_1d_composed
- Examples (tfds.as_dataframe):
mathdataset/algebra_linear_2d
- Examples (tfds.as_dataframe):
mathdataset/algebra_linear_2d_composed
- Examples (tfds.as_dataframe):
mathdataset/algebra_polynomial_roots
- Examples (tfds.as_dataframe):
mathdataset/algebra_polynomial_roots_composed
- Examples (tfds.as_dataframe):
mathdataset/algebra_sequence_next_term
- Examples (tfds.as_dataframe):
mathdataset/algebra_sequence_nth_term
- Examples (tfds.as_dataframe):
mathdataset/arithmetic_add_or_sub
- Examples (tfds.as_dataframe):
mathdataset/arithmetic_add_or_sub_in_base
- Examples (tfds.as_dataframe):
mathdataset/arithmetic_add_sub_multiple
- Examples (tfds.as_dataframe):
mathdataset/arithmetic_div
- Examples (tfds.as_dataframe):
mathdataset/arithmetic_mixed
- Examples (tfds.as_dataframe):
mathdataset/arithmetic_mul
- Examples (tfds.as_dataframe):
mathdataset/arithmetic_mul_div_multiple
- Examples (tfds.as_dataframe):
mathdataset/arithmetic_nearest_integer_root
- Examples (tfds.as_dataframe):
mathdataset/arithmetic_simplify_surd
- Examples (tfds.as_dataframe):
mathdataset/calculus_differentiate
- Examples (tfds.as_dataframe):
mathdataset/calculus_differentiate_composed
- Examples (tfds.as_dataframe):
mathdataset/comparison_closest
- Examples (tfds.as_dataframe):
mathdataset/comparison_closest_composed
- Examples (tfds.as_dataframe):
mathdataset/comparison_kth_biggest
- Examples (tfds.as_dataframe):
mathdataset/comparison_kth_biggest_composed
- Examples (tfds.as_dataframe):
mathdataset/comparison_pair
- Examples (tfds.as_dataframe):
mathdataset/comparison_pair_composed
- Examples (tfds.as_dataframe):
mathdataset/comparison_sort
- Examples (tfds.as_dataframe):
mathdataset/comparison_sort_composed
- Examples (tfds.as_dataframe):
mathdataset/measurement_conversion
- Examples (tfds.as_dataframe):
mathdataset/measurement_time
- Examples (tfds.as_dataframe):
mathdataset/numbers_base_conversion
- Examples (tfds.as_dataframe):
mathdataset/numbers_div_remainder
- Examples (tfds.as_dataframe):
mathdataset/numbers_div_remainder_composed
- Examples (tfds.as_dataframe):
mathdataset/numbers_gcd
- Examples (tfds.as_dataframe):
mathdataset/numbers_gcd_composed
- Examples (tfds.as_dataframe):
mathdataset/numbers_is_factor
- Examples (tfds.as_dataframe):
mathdataset/numbers_is_factor_composed
- Examples (tfds.as_dataframe):
mathdataset/numbers_is_prime
- Examples (tfds.as_dataframe):
mathdataset/numbers_is_prime_composed
- Examples (tfds.as_dataframe):
mathdataset/numbers_lcm
- Examples (tfds.as_dataframe):
mathdataset/numbers_lcm_composed
- Examples (tfds.as_dataframe):
mathdataset/numbers_list_prime_factors
- Examples (tfds.as_dataframe):
mathdataset/numbers_list_prime_factors_composed
- Examples (tfds.as_dataframe):
mathdataset/numbers_place_value
- Examples (tfds.as_dataframe):
mathdataset/numbers_place_value_composed
- Examples (tfds.as_dataframe):
mathdataset/numbers_round_number
- Examples (tfds.as_dataframe):
mathdataset/numbers_round_number_composed
- Examples (tfds.as_dataframe):
mathdataset/polynomials_add
- Examples (tfds.as_dataframe):
mathdataset/polynomials_coefficient_named
- Examples (tfds.as_dataframe):
mathdataset/polynomials_collect
- Examples (tfds.as_dataframe):
mathdataset/polynomials_compose
- Examples (tfds.as_dataframe):
mathdataset/polynomials_evaluate
- Examples (tfds.as_dataframe):
mathdataset/polynomials_evaluate_composed
- Examples (tfds.as_dataframe):
mathdataset/polynomials_expand
- Examples (tfds.as_dataframe):
mathdataset/polynomials_simplify_power
- Examples (tfds.as_dataframe):
mathdataset/probability_swr_p_level_set
- Examples (tfds.as_dataframe):
mathdataset/probability_swr_p_sequence
- Examples (tfds.as_dataframe):