(gameCount, totalGames)
| 79 | * iteration of training. |
| 80 | */ |
| 81 | export function onGameEnd(gameCount, totalGames) { |
| 82 | iterationStatus.textContent = `Game ${gameCount} of ${totalGames}`; |
| 83 | iterationProgress.value = gameCount / totalGames * 100; |
| 84 | if (gameCount === totalGames) { |
| 85 | iterationStatus.textContent = 'Updating weights...'; |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * A function invoked at the end of a training iteration. |