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

Function plotLosses

website-phishing/ui.js:25–33  ·  view source on GitHub ↗
(trainLogs)

Source from the content-addressed store, hash-verified

23};
24
25export async function plotLosses(trainLogs) {
26 return tfvis.show.history(
27 document.getElementById('plotLoss'), trainLogs, ['loss', 'val_loss'], {
28 width: 450,
29 height: 320,
30 xLabel: 'Epoch',
31 yLabel: 'Loss',
32 });
33}
34
35export async function plotAccuracies(trainLogs) {
36 tfvis.show.history(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected