This example shows how to predicting the age of abalone from physical measurements under Node.js
The data set available at UCI Machine Learning Repository.
This example shows how to
- load a
Datasetfrom a local csv file - prepare the Dataset for training
- create a
tf.LayersModelfrom scratch - train the model through
model.fitDataset() - save the trained model to a local folder.
To launch the demo, do
yarn
yarn trainBy default, the training uses tfjs-node, which runs on the CPU. If you have a CUDA-enabled GPU and have the CUDA and CuDNN libraries set up properly on your system, you can run the training on the GPU by replacing the tfjs-node package with tfjs-node-gpu.