Registry / data / mathematics-dataset

mathematics-dataset

JSON →
library1.0.1pypypi✓ verified 80d ago

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-dataset
INSTALL
IMPORT
SIG · MATHEMATICS-DATASE
M
mathematics-dataset
datapythonv1.0.1
Install
8.7s avg
Import
Disk
163MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 151.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.7s · import 0.000s · 148MB
163MB installed
● package 163MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mathematics_dataset
import mathematics_dataset
from mathematics_dataset import MathematicsDataset

Loads the training set of easy questions and prints the first 5 question-answer pairs.

from mathematics_dataset import MathematicsDataset dataset = MathematicsDataset('train-easy', verbose=False) for i, (question, answer) in enumerate(dataset): if i >= 5: break print(f'Q: {question}\nA: {answer}\n')
Debug
Known issues
gotchaThe dataset only provides synthetic questions; answers may contain errors or be nonsensical for edge cases.
fix
Always validate a sample of answers before using the dataset for training or evaluation.
affects: all
gotchaThe first time you load a dataset, it downloads and caches a ~1.4GB tar file. Ensure sufficient disk space and a stable internet connection.
fix
Pre-download with: python -c 'from mathematics_dataset import MathematicsDataset; MathematicsDataset("train-easy")'
affects: all
deprecatedThe library uses Python 2-style print and has not been updated for Python 3.8+ edge cases. Some imports may break with newer Python versions.
fix
Use a virtual environment with Python 3.7 or 3.6; check issue #12 on GitHub.
affects: all
Upgrade
Version history
1.0.1latest on PyPI · released Apr 3, 2019
Audit
Dependencies
sixrequiredRequired for Python 2/3 compatibility.
Agent activity
11 hits · last 30 days
node
8
Bingbot
1
Resources
mathematics-dataset — pip install mathematics-dataset · libregistry