Once you have put the hard work into creating a ML model, you may need to shut down your computer. What happens to your model when the computer is restarted? Unless you have persisted it to disk, it will disappear and you will need to start the training process again. Even if you have saved the model hyperparameters in a gophernotes notebook, the model itself will not have been saved. And if the training process is a long one, you may need to wait a long time before your model is ready to use again.
In the following example, we will explain how to restore the model we created in Chapter 3, Supervised Learning, and persist it to the local filesystem in a model.dat file using its PersistToFile method, which is provided by the GoML API. We will restore it using its RestoreFromFile method. We will assume that all the other funcs we created in Chapter...