(model: ModelSummary)
| 360 | } |
| 361 | |
| 362 | function 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 | |
| 372 | function buildAverageChartUrl( |
| 373 | evalName: string, |
nothing calls this directly
no outgoing calls
no test coverage detected