MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / setRetrainFunction

Function setRetrainFunction

mnist-transfer-cnn/ui.js:59–65  ·  view source on GitHub ↗
(retrain)

Source from the content-addressed store, hash-verified

57}
58
59function setRetrainFunction(retrain) {
60 const retrainButton = document.getElementById('retrain');
61 retrainButton.addEventListener('click', async () => {
62 document.getElementById('retrain').disabled = true;
63 await retrain();
64 });
65}
66
67export function getProgressBarCallbackConfig(epochs) {
68 // Custom callback for updating the progress bar at the end of epochs.

Callers 1

prepUIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected