yarn
yarn start
The output of training a machine-learning algorithm with a dataset. It’s a bit like a function that takes new data as input and produces a prediction as output.
Labels and features relate to the data that you feed an algorithm in the training process.
For example, if our dataset was a CSV file describing different animals, our labels could be words like “dog” or “snake” (depending on what each animal represents).
Features on the other hand, are the characteristics of each entry in your data set. For our animals example, “playful, barks”, “reptile, rampant”, and so on.
Using this, a machine-learning algorithm will be able to find some correlation between features and their label that it will use for future predictions.
- Using a pre-trained model,
- Transfer learning,
- Defining, running, and using your own model.
Depending on the problem you are trying to solve, there might be a model already trained with a specific data set and for a specific purpose which you can leverage and import in your code.
For example, let’s say we are building an app to predict if an image is a picture of a cat. We could then use a popular image classification model called MobileNet which is available as a pre-trained model with Tensorflow.js.
Transfer learning is the ability to combine a pre-trained model with custom training data. What this means is that you can leverage the functionality of a model and add your own samples without having to create everything from scratch.
For example, an algorithm has been trained with thousands of images to create an image classification model, and instead of creating your own, transfer learning allows you to combine new custom image samples with the pre-trained model to create a new image classifier. This feature makes it really fast and easy to have a more customized classifier.
Good example is here: https://zvs9k.sse.codesandbox.io/
The last feature is to define, train and run a model entirely in the browser.
Here data is splitted into a training set and a test set. The training set is used to train the algorithm and the test set is used to check the accuracy of our predictions.
Good example is here: https://ktncm.codesandbox.io/