MLKits icon indicating copy to clipboard operation
MLKits copied to clipboard

Batch Linear Regression

Open KUNAL-create-gif opened this issue 5 years ago • 1 comments

my error is `C:\MLKits-master\regressions\linear-regression.js:37 const batchQuantity = Math.floor(this.features.shape[0] / this.options.batchSize); ^

TypeError: Cannot read property 'shape' of undefined at LinearRegression.train (C:\MLKits-master\regressions\linear-regression.js:37:56) at Object. (C:\MLKits-master\regressions\index.js:22:12) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47`

(https://github.com/KUNAL-create-gif/regressions-)

KUNAL-create-gif avatar Feb 01 '21 18:02 KUNAL-create-gif

error is C:\MLKits-master\regressions\linear-regression.js:37 const batchQuantity = Math.floor(this.features.shape[0] / this.options.batchSize); ^

TypeError: Cannot read property 'shape' of undefined at LinearRegression.train (C:\MLKits-master\regressions\linear-regression.js:37:56) at Object. (C:\MLKits-master\regressions\index.js:22:12) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47

KUNAL-create-gif avatar Feb 01 '21 18:02 KUNAL-create-gif