Download testing/agent_evaluation/reporting/models.py from yuhanqin/ut-evaluation: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/reporting/models.py
- Command line
-
hf download hf://datasets/yuhanqin/ut-evaluation/testing/agent_evaluation/reporting/models.py
-
curl -L -o models.py https://huggingface.co/datasets/yuhanqin/ut-evaluation/resolve/main/testing/agent_evaluation/reporting/models.py
721 Bytes
| """Typed report input shared by persisted and in-memory experiments.""" | |
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from typing import Any, Mapping | |
| from ..models import ScoreRecord, TaskArtifact, deep_thaw, score_statistics | |
| class ReportData: | |
| """Source-neutral report input; callers own assembly and deserialization.""" | |
| experiment_id: str | |
| runs: tuple[TaskArtifact, ...] | |
| scores: tuple[ScoreRecord, ...] | |
| inputs: Mapping[str, Any] | |
| backend: Mapping[str, Any] | |
| def summary(self) -> dict[str, Any]: | |
| return {"inputs": deep_thaw(self.inputs), "backend": deep_thaw(self.backend), | |
| "evaluation": score_statistics(self.scores)} | |