(index)
| 119 | return this.getSampleByIndex(randomIndex); |
| 120 | }, |
| 121 | getSampleByIndex(index) { |
| 122 | if (!Number.isFinite(index) || index < 0 || index >= totalSamples) return null; |
| 123 | const pixels = normaliseSlice(index); |
| 124 | return { |
| 125 | index, |
| 126 | digit: labelBytes[index], |
| 127 | pixels, |
| 128 | }; |
| 129 | }, |
| 130 | }; |
| 131 | } |
| 132 |
nothing calls this directly
no test coverage detected