Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,10 +8,39 @@ size_categories:
|
|
| 8 |
- 10K<n<100K
|
| 9 |
---
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
- 10K<n<100K
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# ASyMOB Dataset Generation
|
| 12 |
|
| 13 |
+
ASyMOB_Generation.py generates a diverse set of mathematical question variants from a seed CSV file. It leverages the `sympy` library for symbolic mathematics to create various perturbations of original questions, including symbolic, numeric, and equivalence-based transformations. The generated questions are then saved to a JSON file.
|
| 14 |
+
|
| 15 |
+
## Usage
|
| 16 |
+
|
| 17 |
+
1. **Prepare your seed data:** Ensure you have a CSV file named `Seed_and_Max_Symbolic_Perturbations.csv` in the same directory as the script. This CSV should contain the seed mathematical questions, their maximal symbolic perturbations, and answers as SymPy expressions.
|
| 18 |
+
|
| 19 |
+
The expected fields in `Seed_and_Max_Symbolic_Perturbations.csv` are:
|
| 20 |
+
* **`Challenge`**: The mathematical question in LaTeX format, including assumptions regarding variables or other mathematical details.
|
| 21 |
+
* **`Answer in LaTeX`** (optional): The answer to the question, represented as a LaTeX string.
|
| 22 |
+
* **`Answer in Sympy`**: The answer to the question, represented as a SymPy expression string.
|
| 23 |
+
* **`Variation`**: "Original" or "Symbolic".
|
| 24 |
+
* **`Source`**: Identifies the origin of the question.
|
| 25 |
+
|
| 26 |
+
2. **Run the script:**
|
| 27 |
+
```
|
| 28 |
+
python ASyMOB_Generation.py
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
3. **Output:** The script will generate a JSON file named `Full_ASyMOB_Dataset.json` in the same directory. This file will contain all the original seed and symbolic questions along with their newly generated symbolic, numeric, and equivalence-based variants.
|
| 32 |
+
|
| 33 |
+
The fields in `Full_ASyMOB_Dataset.json` are:
|
| 34 |
+
|
| 35 |
+
* **`Index`**: Sequential ID.
|
| 36 |
+
* **`Challenge`**: The mathematical question in LaTeX format, including assumptions regarding variables or other mathematical details.
|
| 37 |
+
* **`Answer in Sympy`**: The answer to the question, represented as a SymPy expression string.
|
| 38 |
+
* **`Variation`**: e.g., Equivalence-All-Hard, Numeric-One-3, etc.
|
| 39 |
+
* **`Source`**: Same as the seed question from which this variation originated.
|
| 40 |
+
|
| 41 |
+
## Customization
|
| 42 |
+
|
| 43 |
+
- **`Seed_and_Max_Symbolic_Perturbations.csv`:** Modify this CSV to add new seed questions or adjust existing ones.
|
| 44 |
+
- **`symnoise_char_list`, `symnoise_sym_list`:** Adjust the lists of symbolic characters and their SymPy representations if your questions use different symbols for perturbation (ASyMOB uses 'A', 'B', 'F', 'G', 'H' by default).
|
| 45 |
+
- **`equivalent_forms_easy`, `equivalent_forms_hard`:** Add or modify the equivalent forms to introduce different types of mathematical equivalences.
|
| 46 |
+
- **`noise_digits` and `reps_num`:** In `generate_NA2S`, you can change `noise_digits` to control the range of random numbers used for numeric perturbations and `reps_num` to control the number of repetitions for each item.
|