(val: number)
| 77 | describeMathCPUAndGPU('meanSquaredLogarithmicError', () => { |
| 78 | function meanSquaredLogErrorFor1DArray(x: number[], y: number[]): number { |
| 79 | const calcLog = (val: number) => Math.log(Math.max(val, epsilon()) + 1); |
| 80 | const logX = x.map(calcLog); |
| 81 | const logY = y.map(calcLog); |
| 82 | let acc = 0.0; |