Reader small image

You're reading from  Machine Learning with Go Quick Start Guide

Product typeBook
Published inMay 2019
Reading LevelIntermediate
PublisherPackt
ISBN-139781838550356
Edition1st Edition
Languages
Right arrow
Authors (2):
Michael Bironneau
Michael Bironneau
author image
Michael Bironneau

Michael Bironneau is an award-winning mathematician and experienced software engineer. He holds a PhD in mathematics from Loughborough University and has worked in several data science and software development roles. He is currently technical director of the energy AI technology company, Open Energi.
Read more about Michael Bironneau

Toby Coleman
Toby Coleman
author image
Toby Coleman

Toby Coleman is an experienced data science and machine learning practitioner. Following degrees from Cambridge University and Imperial College London, he has worked on the application of data science techniques in the banking and energy sectors. Recently, he held the position of innovation director at cleantech SME Open Energi, and currently provides machine learning consultancy to start-up businesses.
Read more about Toby Coleman

View More author details
Right arrow

How to restore a saved GoML model

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...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Machine Learning with Go Quick Start Guide
Published in: May 2019Publisher: PacktISBN-13: 9781838550356

Authors (2)

author image
Michael Bironneau

Michael Bironneau is an award-winning mathematician and experienced software engineer. He holds a PhD in mathematics from Loughborough University and has worked in several data science and software development roles. He is currently technical director of the energy AI technology company, Open Energi.
Read more about Michael Bironneau

author image
Toby Coleman

Toby Coleman is an experienced data science and machine learning practitioner. Following degrees from Cambridge University and Imperial College London, he has worked on the application of data science techniques in the banking and energy sectors. Recently, he held the position of innovation director at cleantech SME Open Energi, and currently provides machine learning consultancy to start-up businesses.
Read more about Toby Coleman