MCPcopy Create free account
hub / github.com/anomalyco/opencode-bench / computeAverageScore

Function computeAverageScore

scripts/discord-sample.ts:362–370  ·  view source on GitHub ↗
(model: ModelSummary)

Source from the content-addressed store, hash-verified

360}
361
362function computeAverageScore(model: ModelSummary): number {
363 if (model.rows.length === 0) {
364 return 0;
365 }
366
367 const total = model.rows.reduce((sum, score) => sum + score.average, 0);
368
369 return total / model.rows.length;
370}
371
372function buildAverageChartUrl(
373 evalName: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected