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

Regression

Having mastered many of the key machine learning concepts in the Classification section, in this section, we will apply what we have learned to a regression problem. We will be using a dataset containing information about groups of houses in different locations in California[4]. Our goal will be to predict the median house price in each group using input data such as the latitude/longitude location, median house size, age, and so on.

Use the download-housing.sh script to download the dataset and then load it into Go:

import (
"fmt"
"github.com/kniren/gota/dataframe"
"github.com/kniren/gota/series"
"math/rand"
"image"
"bytes"
"math"
"github.com/gonum/stat"
"github.com/gonum/integrate"
"github.com/sajari/regression"
"io/ioutil&quot...
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