- Code to experiment with machine learning, shuffling data using a seed phrase.
- Uses TensorFlow in javascript, following Udemy Course [Machine Learning With Javascript].
*** Note: to open web links in a new window use: ctrl+click on link**
- "TensorFlow.js is an open-source hardware-accelerated JavaScript library for training and deploying machine learning models."
- TensorFlow.js, an open-source hardware-accelerated JavaScript library for training and deploying machine learning models.
- @tensorflow/tfjs-node v2.
- node.js v12 LTS
- Lodash v4, a modern JavaScript utility library delivering modularity, performance & extras. It has lots of methods but is slow.
- Javascript playground, a sandbox for writing javascript code and seeing the result on the right.
- type
node load-csv.js
in console terminal to see any console.logs. - It was necessary to install Python on my PC for this to compile.
- Use 'chrome://inspect/#devices' in browser to run in Chrome developer tools.
- result of typing:
node load-csv.js
Features [ [ 10, 20 ], [ 12, 22 ], [ 11, 21 ] ]
Labels [ [ 1 ], [ 1 ], [ 0 ] ]
testFeatures undefined
testLabels undefined
- to follow
- Status: returns Features and Labels but testFeatures and testLabels undefined - see Code Example
- To-Do: Run again and correct data.
Code from Udemy Course Machine Learning With Javascript section 183, 184.
- Repo created by ABateman - you are welcome to send me a message