MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / onGameEnd

Function onGameEnd

cart-pole/ui.js:81–87  ·  view source on GitHub ↗
(gameCount, totalGames)

Source from the content-addressed store, hash-verified

79 * iteration of training.
80 */
81export 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.

Callers 1

trainMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected