Training models | TensorFlow.js
www.tensorflow.org › js › guideNov 05, 2021 · In TensorFlow.js there are two ways to train a machine learning model: using the Layers API with LayersModel.fit () or LayersModel.fitDataset (). using the Core API with Optimizer.minimize (). First, we will look at the Layers API, which is a higher-level API for building and training models.