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

Method constructor

mnist-node/data.js:124–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122/** Helper class to handle loading training and test data. */
123class MnistDataset {
124 constructor() {
125 this.dataset = null;
126 this.trainSize = 0;
127 this.testSize = 0;
128 this.trainBatchIndex = 0;
129 this.testBatchIndex = 0;
130 }
131
132 /** Loads training and test data. */
133 async loadData() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected