August 2019
Intermediate to advanced
342 pages
9h 35m
English
As our first example, we'll look at one of the most commonly used algorithms in the field of supervised learning, namely linear regression. Taking advantage of the scikit-learn Python library, we instantiate a linear regression object, by importing the LinearRegression class included in the linear_model package of the scikit-learn library.
The model will be trained with a training dataset obtained by invoking the rand() method of the RandomState class, which belongs to the random package of the Python numpy library. The training data is distributed following the linear model of,
. The training ...
Read now
Unlock full access