A synthetic dataset of school-level mathematics questions from DeepMind, covering arithmetic, algebra, calculus, and more. Current version 1.0.1, released in 2019. No active development; stable.
pip install mathematics-datasetVerified import paths — ran on the pinned version, not inferred.
Loads the training set of easy questions and prints the first 5 question-answer pairs.
Always validate a sample of answers before using the dataset for training or evaluation.
Pre-download with: python -c 'from mathematics_dataset import MathematicsDataset; MathematicsDataset("train-easy")'Use a virtual environment with Python 3.7 or 3.6; check issue #12 on GitHub.