Book Image

Machine Learning with Go Quick Start Guide

By : Michael Bironneau, Toby Coleman
Book Image

Machine Learning with Go Quick Start Guide

By: Michael Bironneau, Toby Coleman

Overview of this book

Machine learning is an essential part of today's data-driven world and is extensively used across industries, including financial forecasting, robotics, and web technology. This book will teach you how to efficiently develop machine learning applications in Go. The book starts with an introduction to machine learning and its development process, explaining the types of problems that it aims to solve and the solutions it offers. It then covers setting up a frictionless Go development environment, including running Go interactively with Jupyter notebooks. Finally, common data processing techniques are introduced. The book then teaches the reader about supervised and unsupervised learning techniques through worked examples that include the implementation of evaluation metrics. These worked examples make use of the prominent open-source libraries GoML and Gonum. The book also teaches readers how to load a pre-trained model and use it to make predictions. It then moves on to the operational side of running machine learning applications: deployment, Continuous Integration, and helpful advice for effective logging and monitoring. At the end of the book, readers will learn how to set up a machine learning project for success, formulating realistic success criteria and accurately translating business requirements into technical ones.
Table of Contents (9 chapters)

Using Pretrained Models

In the previous two chapters, you learned how to use supervised ML algorithms (Chapter 3, Supervised Learning) and unsupervised ML algorithms (Chapter 4, Unsupervised Learning) to solve a wide range of problems. The solutions created models from scratch and consisted only of Go code. We did not use models that had already been trained, nor did we attempt to call Matlab, Python, or R code from Go. However, there are several situations in which this can be beneficial. In this chapter, we will present several strategies aimed at using pretrained models and creating polyglot ML applications that is, where the main application logic is written in Go but where specialist techniques and models may have been written in other languages.

In this chapter, you will learn about the following topics:

  • How to load a pretrained GoML model and use it to generate...