Machine Learning for Developers by Rodolfo Bonnin

Machine Learning for Developers by Rodolfo Bonnin

Author:Rodolfo Bonnin
Language: eng
Format: epub, mobi, pdf
Tags: COM018000 - COMPUTERS / Data Processing, COM021030 - COMPUTERS / Databases / Data Mining, COM051280 - COMPUTERS / Programming Languages / Java
Publisher: Packt
Published: 2018-02-26T10:50:09+00:00


Correlation plot of the San Francisco housing dataset.

Data exploration and linear regression in practice

In this section, we will start using one of the most well-known toy datasets, explore it, and select one of the dimensions to learn how to build a linear regression model for its values.

Let's start by importing all the libraries (scikit-learn, seaborn, and matplotlib); one of the excellent features of Seaborn is its ability to define very professional-looking style settings. In this case, we will use the whitegrid style:

import numpy as np from sklearn import datasets import seaborn.apionly as sns %matplotlib inline import matplotlib.pyplot as plt sns.set(style='whitegrid', context='notebook')



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.