EvalResults.to_scorecard()
Export results as a scorecard dictionary (optionally written to JSON).
Usage
EvalResults.to_scorecard(path=None)The scorecard is a portable representation of evaluation results suitable for committing to a repository or publishing to a docs site.
Parameters
path: str | Path | None = None- Optional file path to write the scorecard JSON. Directories are created automatically.
Returns
dict[str, Any]- Scorecard with metadata, per-variant scores, and overall results.