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)

When to combine ML with traditional code

While most of this book has focused on how to write and use ML code, you will have also noticed that a lot of traditional, non-ML code is needed to support what we have done. Much of this is hidden inside the software libraries we have used, but there are cases where you may need to add to this.

One example is where you need to enforce certain constraints on your model output, for instance, to handle an edge case or implement some safety-critical constraints. Suppose you are writing software for a self-driving car: you might use ML to process image data from the cars cameras, but when it comes to actuating the vehicles steering, engine, and brake controls, you will most likely need to use traditional code to ensure that the car is controlled safely. Similarly, unless your ML system is trained to handle unexpected data inputs, for example...