How to train a model in nodejs (tensorflow.js)?
First of all, the images needs to be converted to tensors. The first approach would be to create a tensor containing all the features (respectively a tensor containing all the labels). This should the way to go only if the dataset contains few images. const imageBuffer = await fs.readFile(feature_file); tensorFeature = tfnode.node.decodeImage(imageBuffer) // create a … Read more