Hands-On Machine Learning with Scikit-Learn and TensorFlow



Download 26,57 Mb.
Pdf ko'rish
bet103/225
Sana16.03.2022
Hajmi26,57 Mb.
#497859
1   ...   99   100   101   102   103   104   105   106   ...   225
Bog'liq
Hands on Machine Learning with Scikit Learn Keras and TensorFlow

Batch Gradient Descent
To implement Gradient Descent, you need to compute the gradient of the cost func‐
tion with regards to each model parameter 
θ
j
. In other words, you need to calculate
how much the cost function will change if you change 
θ
j
just a little bit. This is called 

partial derivative
. It is like asking “what is the slope of the mountain under my feet
if I face east?” and then asking the same question facing north (and so on for all other
dimensions, if you can imagine a universe with more than three dimensions). 
Equa‐
tion 4-5
 computes the partial derivative of the cost function with regards to parame‐
ter 
θ
j
, noted 


θj
MSE(θ).
Equation 4-5. Partial derivatives of the cost function


θ
j
MSE
θ = 2
m

i
= 1
m
θ
T
x
i

y
i
x
j
i
Instead of computing these partial derivatives individually, you can use 
Equation 4-6
to compute them all in one go. The gradient vector, noted 

θ
MSE(θ), contains all the
partial derivatives of the cost function (one for each model parameter).
Gradient Descent | 125


6
Eta (
η
) is the 7
th
letter of the Greek alphabet.
Equation 4-6. Gradient vector of the cost function

θ
MSE θ =


θ
0
MSE
θ


θ
1
MSE θ



θ
n
MSE θ
= 2
m

Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   99   100   101   102   103   104   105   106   ...   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