INNER CODE UNIT · Python

_load_grading_results

AgentSkillOS/SkillAnything · scripts/aggregate_benchmark.py:10

def _load_grading_results(run_dirs: list[Path]) -> list[dict[str, Any]]:
    """Load grading.json from each run directory.

    Supports both workspace layout (run_dir/grading.json) and
    legacy layout (run_dir/outputs/grading.json).
    """
    results = []
    for run_dir in run_dirs:
        # Try workspace layout first
        grading_path = run_dir / "grading.json"
        if not grading_path.exists():
            # Try legacy layout
            grading_path = run_dir / "outputs" / "grading.json"
        if not grading_path.exists():
            print(f"Warning: No grading.json found in {run_dir}", file=sys.stderr)
            continue

        with open(grading_path) as f:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…