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

Method nextTestBatch

tsne-mnist-canvas/data.js:115–121  ·  view source on GitHub ↗
(batchSize)

Source from the content-addressed store, hash-verified

113 }
114
115 nextTestBatch(batchSize) {
116 return this.nextBatch(batchSize, [this.testImages, this.testLabels], () => {
117 this.shuffledTestIndex =
118 (this.shuffledTestIndex + 1) % this.testIndices.length;
119 return this.testIndices[this.shuffledTestIndex];
120 });
121 }
122
123 nextBatch(batchSize, data, index) {
124 const batchImagesArray = new Float32Array(batchSize * IMAGE_SIZE);

Callers

nothing calls this directly

Calls 1

nextBatchMethod · 0.95

Tested by

no test coverage detected