Hands-On Machine Learning with Scikit-Learn and TensorFlow



Download 26,57 Mb.
Pdf ko'rish
bet97/225
Sana16.03.2022
Hajmi26,57 Mb.
#497859
1   ...   93   94   95   96   97   98   99   100   ...   225
Bog'liq
Hands on Machine Learning with Scikit Learn Keras and TensorFlow

Linear Regression
In 
Chapter 1
, we looked at a simple regression model of life satisfaction: 
life_satisfac‐
tion

θ
0

θ
1
× 
GDP_per_capita
.
This model is just a linear function of the input feature 
GDP_per_capita

θ
0
and 
θ
1
are
the model’s parameters.
More generally, a linear model makes a prediction by simply computing a weighted
sum of the input features, plus a constant called the 
bias term
(also called the 
intercept
term
), as shown in 
Equation 4-1
.
Equation 4-1. Linear Regression model prediction
y
=
θ
0
+
θ
1
x
1
+
θ
2
x
2
+

+
θ
n
x
n

ŷ
is the predicted value.

n
is the number of features.

x
i
is the i
th
feature value.

θ
j
is the j
th
model parameter (including the bias term 
θ
0
and the feature weights
θ
1

θ
2



θ
n
).
116 | Chapter 4: Training Models


1
It is often the case that a learning algorithm will try to optimize a different function than the performance
measure used to evaluate the final model. This is generally because that function is easier to compute, because
it has useful differentiation properties that the performance measure lacks, or because we want to constrain
the model during training, as we will see when we discuss regularization.
This can be written much more concisely using a vectorized form, as shown in 
Equa‐
tion 4-2
.
Equation 4-2. Linear Regression model prediction (vectorized form)
y
=
h

Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   93   94   95   96   97   98   99   100   ...   225




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish