MCPcopy
hub / github.com/tensorflow/tfjs-examples / test

Function test

mnist-core/index.js:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33async function test() {
34 const testExamples = 50;
35 const batch = data.nextTestBatch(testExamples);
36 const predictions = model.predict(batch.xs);
37 const labels = model.classesFromLabel(batch.labels);
38
39 ui.showTestResults(batch, predictions, labels);
40}
41
42async function mnist() {
43 await load();

Callers 1

mnistFunction · 0.85

Calls 2

nextTestBatchMethod · 0.45
predictMethod · 0.45

Tested by

no test coverage detected