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

Method loadData

boston-housing/data.js:87–96  ·  view source on GitHub ↗

Loads training and test data.

()

Source from the content-addressed store, hash-verified

85
86 /** Loads training and test data. */
87 async loadData() {
88 [this.trainFeatures, this.trainTarget, this.testFeatures, this.testTarget] =
89 await Promise.all([
90 loadCsv(TRAIN_FEATURES_FN), loadCsv(TRAIN_TARGET_FN),
91 loadCsv(TEST_FEATURES_FN), loadCsv(TEST_TARGET_FN)
92 ]);
93
94 shuffle(this.trainFeatures, this.trainTarget);
95 shuffle(this.testFeatures, this.testTarget);
96 }
97}
98
99export const featureDescriptions = [

Callers 1

index.jsFile · 0.45

Calls 2

loadCsvFunction · 0.70
shuffleFunction · 0.70

Tested by

no test coverage detected