(loss, iteration)
| 27 | |
| 28 | const lossArr = []; |
| 29 | export function trainingLog(loss, iteration) { |
| 30 | messageElement.innerText = `loss[${iteration}]: ${loss}`; |
| 31 | lossArr.push({x: iteration, y: loss}); |
| 32 | const container = {name: 'Loss', tab: 'Training'}; |
| 33 | const options = { |
| 34 | xLabel: 'Training Step', |
| 35 | yLavel: 'Loss', |
| 36 | }; |
| 37 | const data = {values: lossArr, series: ['loss']}; |
| 38 | tfvis.render.linechart(container, data, options); |
| 39 | } |
| 40 | |
| 41 | export function showTestResults(batch, predictions, labels) { |
| 42 | statusElement.innerText = 'Testing...'; |
nothing calls this directly
no outgoing calls
no test coverage detected