Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Machine Learning with Go Quick Start Guide

You're reading from   Machine Learning with Go Quick Start Guide Hands-on techniques for building supervised and unsupervised machine learning workflows

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781838550356
Length 168 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Michael Bironneau Michael Bironneau
Author Profile Icon Michael Bironneau
Michael Bironneau
Toby Coleman Toby Coleman
Author Profile Icon Toby Coleman
Toby Coleman
Arrow right icon
View More author details
Toc

Example – invoking a Python model using HTTP

What if the model resides on a different machine, we need to decouple the Go and model logic, or if there are multiple actions we may wish to perform, such as training a user-specific model based on user data, and later use this model to generate a prediction? In those cases, our previous solution using command-line arguments will become more complex as we add more arguments to distinguish between actions and return codes. This type of invocation is generally known as Remote Procedure Call (RPC), and solutions such as SOAP or JSON-RPC have been known to the industry for decades[7].

In the following example, we will use a more universal and generic protocol: HTTP. Strictly speaking, HTTP is a data transfer protocol, and one that is often used as the plumbing for RPC protocols. However, with very little effort, we can create our...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image