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

Method constructor

website-phishing/data.js:29–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27/** Helper class to handle loading training and test data. */
28export class WebsitePhishingDataset {
29 constructor() {
30 this.dataset = null;
31 this.trainSize = 0;
32 this.testSize = 0;
33 this.trainBatchIndex = 0;
34 this.testBatchIndex = 0;
35
36 this.NUM_FEATURES = 30;
37 this.NUM_CLASSES = 2;
38 }
39
40 get numFeatures() {
41 return this.NUM_FEATURES;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected