(model: string)
| 83 | const ratingsCache: Record<string, { mu: number; sigma: number; matches: number }> = {}; |
| 84 | |
| 85 | const getRating = (model: string) => ratingsCache[model] ?? { mu: 24, sigma: 1, matches: 0 }; |
| 86 | |
| 87 | const updateRating = (model1: string, model2: string, score: number) => { |
| 88 | const rating1 = getRating(model1); |