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

Method nextTrainBatch

mnist-core/data.js:108–115  ·  view source on GitHub ↗
(batchSize)

Source from the content-addressed store, hash-verified

106 }
107
108 nextTrainBatch(batchSize) {
109 return this.nextBatch(
110 batchSize, [this.trainImages, this.trainLabels], () => {
111 this.shuffledTrainIndex =
112 (this.shuffledTrainIndex + 1) % this.trainIndices.length;
113 return this.trainIndices[this.shuffledTrainIndex];
114 });
115 }
116
117 nextTestBatch(batchSize) {
118 return this.nextBatch(batchSize, [this.testImages, this.testLabels], () => {

Callers 1

trainFunction · 0.45

Calls 1

nextBatchMethod · 0.95

Tested by

no test coverage detected