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

Function onTrainEpochEnd

lstm-text-generation/ui.js:99–107  ·  view source on GitHub ↗
(logs)

Source from the content-addressed store, hash-verified

97}
98
99export function onTrainEpochEnd(logs) {
100 epochLossValues.push(logs);
101 const container = document.getElementById('epoch-loss-canvas');
102 tfvis.show.history(container, epochLossValues, ['loss', 'val_loss'], {
103 height: 300,
104 zoomToFit: true,
105 xLabel: 'Epoch',
106 });
107}
108
109/**
110 * A function to call when text generation begins.

Callers 1

fitModelMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected