Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,77 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
# Algebra Equations Dataset
|
| 5 |
+
|
| 6 |
+
## Overview
|
| 7 |
+
|
| 8 |
+
This dataset contains automatically generated algebra problems with step-by-step solutions.
|
| 9 |
+
It is intended for training or testing models that solve equations and show intermediate reasoning steps.
|
| 10 |
+
|
| 11 |
+
The dataset is stored in **JSON Lines (`.jsonl`) format**, where each line represents one problem and its solution.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## File
|
| 16 |
+
|
| 17 |
+
```
|
| 18 |
+
equations_dataset.jsonl
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
Each line contains:
|
| 22 |
+
|
| 23 |
+
```
|
| 24 |
+
{
|
| 25 |
+
"input": "<problem>",
|
| 26 |
+
"output": "<step-by-step solution>"
|
| 27 |
+
}
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## Equation Types
|
| 33 |
+
|
| 34 |
+
The dataset contains randomly generated:
|
| 35 |
+
|
| 36 |
+
* Linear equations
|
| 37 |
+
* Quadratic equations
|
| 38 |
+
* Cubic equations
|
| 39 |
+
* Systems of two linear equations
|
| 40 |
+
|
| 41 |
+
---
|
| 42 |
+
|
| 43 |
+
## Example
|
| 44 |
+
|
| 45 |
+
```
|
| 46 |
+
{
|
| 47 |
+
"input": "Solve 3x - 6 = 0",
|
| 48 |
+
"output": "3x - 6 = 0
|
| 49 |
+
3x = 6
|
| 50 |
+
x = 6 / 3
|
| 51 |
+
x = 2"
|
| 52 |
+
}
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
## Loading the Dataset
|
| 58 |
+
|
| 59 |
+
Example Python code:
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
import json
|
| 63 |
+
|
| 64 |
+
with open("equations_dataset.jsonl") as f:
|
| 65 |
+
for line in f:
|
| 66 |
+
data = json.loads(line)
|
| 67 |
+
print(data["input"])
|
| 68 |
+
print(data["output"])
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
## Notes
|
| 74 |
+
|
| 75 |
+
* Problems are randomly generated.
|
| 76 |
+
* Solutions include clear algebraic steps.
|
| 77 |
+
* Fractional values may appear.
|