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

Method constructor

boston-housing/data.js:70–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68/** Helper class to handle loading training and test data. */
69export class BostonHousingDataset {
70 constructor() {
71 // Arrays to hold the data.
72 this.trainFeatures = null;
73 this.trainTarget = null;
74 this.testFeatures = null;
75 this.testTarget = null;
76 }
77
78 get numFeatures() {
79 // If numFeatures is accessed before the data is loaded, raise an error.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected