Loads training and test data.
()
| 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 | |
| 99 | export const featureDescriptions = [ |