()
| 254 | ]; |
| 255 | |
| 256 | function loadExport(): EvaluationRunExport[] { |
| 257 | const inputPath = process.argv[2]; |
| 258 | if (!inputPath) { |
| 259 | return sampleExport; |
| 260 | } |
| 261 | |
| 262 | const raw = readFileSync(inputPath, "utf8"); |
| 263 | |
| 264 | return JSON.parse(raw); |
| 265 | } |
| 266 | |
| 267 | function toEvalSummaries(exportData: EvaluationRunExport[]): EvalSummary[] { |
| 268 | const evalMap = new Map<string, ModelSummary[]>(); |