Spaces:
Running
Running
| """Canonical evaluation runner for all evaluation bundles.""" | |
| from __future__ import annotations | |
| from pathlib import Path | |
| from app.evaluation.benchmark_report import build_benchmark_report | |
| from app.evaluation.plotting import generate_training_plots | |
| def run_all(root: Path) -> dict[str, object]: | |
| reports_dir = root / "outputs" / "reports" | |
| report = build_benchmark_report(reports_dir / "benchmark_report.txt") | |
| plots = generate_training_plots(report_dir=reports_dir, plot_dir=root / "outputs" / "plots") | |
| return {"report": report, "plots": plots} | |
| __all__ = ["run_all"] | |