Spaces:
Sleeping
Sleeping
|
Download eval/datasets/README.md from Cuong2004/math-solver: direct link, hf CLI and curl.
- Browser
- Download file 882 Bytes
-
https://huggingface.co/spaces/Cuong2004/math-solver/resolve/main/eval/datasets/README.md
- Command line
-
hf download hf://spaces/Cuong2004/math-solver/eval/datasets/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Cuong2004/math-solver/resolve/main/eval/datasets/README.md
882 Bytes
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:
{
"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:
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())