Spaces:
Running
Running
File size: 882 Bytes
0772b5a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | # MathSolver Benchmark Datasets
Standardized evaluation benchmarks for regression testing, metric tracking, and ablation studies.
## Dataset Structure
Each JSON file in `eval/datasets/` contains problem samples adhering to the `BenchmarkSample` schema:
```json
{
"id": "geo_01_square_pyramid",
"category": "3d_pyramid",
"problem_text": "Cho hình chóp S.ABCD...",
"expected_type": "pyramid",
"expected_entities": ["S", "A", "B", "C", "D"],
"expected_dsl": "PYRAMID(S_ABCD)\nSQUARE(ABCD)...",
"expected_answer": "32"
}
```
## Running Evaluation
To evaluate deterministic DSL solvability & geometry validator pass rates:
```python
from eval.benchmark import BenchmarkDataset
from eval.runner import EvalRunner
dataset = BenchmarkDataset.load_all_standard()
runner = EvalRunner()
metrics = runner.evaluate_dsl_deterministic(dataset)
print(metrics.to_dict())
```
|