Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- mathematical-modeling
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- math
|
| 10 |
+
- transformer
|
| 11 |
+
- symbolic-math
|
| 12 |
+
- jax
|
| 13 |
+
- arithmetic
|
| 14 |
+
size_categories:
|
| 15 |
+
- 100M-1B
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Transformer Math Dataset (200,000,000 Samples Sharded)
|
| 19 |
+
|
| 20 |
+
High-precision synthetic mathematical expression dataset generated for training sequence-to-sequence math Transformers in JAX/Flax.
|
| 21 |
+
|
| 22 |
+
## Dataset Structure
|
| 23 |
+
|
| 24 |
+
- **Total Samples**: 200,000,000
|
| 25 |
+
- **Shard Format**: JSONL sharded files (100,000 samples per shard)
|
| 26 |
+
- **Supported Operations**: `+`, `-`, `*`, `/`, `^`, `sin`, `cos`, `tan`, `log`, `ln`, `exp`, `sqrt`, `abs`
|
| 27 |
+
- **Expression Depth Range**: Depth 4 to 6
|
| 28 |
+
- **Integer Operand Ratio**: 80%
|
| 29 |
+
|
| 30 |
+
## Data Fields
|
| 31 |
+
|
| 32 |
+
Each line in the `.jsonl` shard files is a JSON object with the following fields:
|
| 33 |
+
|
| 34 |
+
- `expr` (`str`): Syntactically valid mathematical expression (e.g. `"sin((3.5))+cos((1.2))"`)
|
| 35 |
+
- `val` (`str`): Target evaluated numerical result formatted to precision (e.g. `"0.6"`)
|
| 36 |
+
- `category` (`str`): Operation-depth category bucket (e.g. `"sin_d4"`)
|
| 37 |
+
- `ops_used` (`list[str]`): List of mathematical functions/operators present in the expression (e.g. `["sin", "+", "cos"]`)
|
| 38 |
+
|
| 39 |
+
## Usage Example
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
from datasets import load_dataset
|
| 43 |
+
|
| 44 |
+
dataset = load_dataset("saidurga001301/mathmetics-dataset-intmax", streaming=True)
|
| 45 |
+
for sample in dataset["train"]:
|
| 46 |
+
print(sample["expr"], "->", sample["val"], "ops:", sample["ops_used"])
|
| 47 |
+
break
|
| 48 |
+
```
|