August 2018
Intermediate to advanced
522 pages
12h 45m
English
The scikit-learn library offers the LinearRegression class, which works with n-dimensional spaces. For this purpose, we're going to use the Boston dataset:
from sklearn.datasets import load_bostonboston = load_boston()print(boston.data.shape)(506L, 13L)print(boston.target.shape)(506L,)
It has 506 samples with 13 input features and one output. In the following graph, there's a collection of the plots of the first 12 features:

Read now
Unlock full access