* A function invoked at the end of a training iteration. * * @param {number} iterationCount A count of how many iterations has completed * so far in the current round of training. * @param {*} totalIterations Total number of iterations to complete in the * current round of training.
(iterationCount, totalIterations)
| 95 | * current round of training. |
| 96 | */ |
| 97 | function onIterationEnd(iterationCount, totalIterations) { |
| 98 | trainStatus.textContent = `Iteration ${iterationCount} of ${totalIterations}`; |
| 99 | trainProgress.value = iterationCount / totalIterations * 100; |
| 100 | } |
| 101 | |
| 102 | // Objects and function to support the plotting of game steps during training. |
| 103 | let meanStepValues = []; |