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

Function onIterationEnd

cart-pole/ui.js:97–100  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

95 * current round of training.
96 */
97function 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.
103let meanStepValues = [];

Callers 1

setUpUIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected