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

Method loadData

mnist-acgan/data.js:135–142  ·  view source on GitHub ↗

Loads training and test data.

()

Source from the content-addressed store, hash-verified

133
134 /** Loads training and test data. */
135 async loadData() {
136 this.dataset = await Promise.all([
137 loadImages(TRAIN_IMAGES_FILE), loadLabels(TRAIN_LABELS_FILE),
138 loadImages(TEST_IMAGES_FILE), loadLabels(TEST_LABELS_FILE)
139 ]);
140 this.trainSize = this.dataset[0].length;
141 this.testSize = this.dataset[2].length;
142 }
143
144 getTrainData() {
145 return this.getData_(true);

Callers 1

runFunction · 0.45

Calls 2

loadImagesFunction · 0.70
loadLabelsFunction · 0.70

Tested by

no test coverage detected