Hands-On Machine Learning with Scikit-Learn and TensorFlow



Download 26,57 Mb.
Pdf ko'rish
bet144/225
Sana16.03.2022
Hajmi26,57 Mb.
#497859
1   ...   140   141   142   143   144   145   146   147   ...   225
Bog'liq
Hands on Machine Learning with Scikit Learn Keras and TensorFlow

aa
T
b
Polynomial:
K
a=
γ
a
T
+
r
d
Gaussian RBF:
K
a= exp −
γ

− b

2
Sigmoid:
K
a= tanh
γ
a
T
+
r
174 | Chapter 5: Support Vector Machines


Mercer’s Theorem
According to 
Mercer’s theorem
, if a function 
K
(ab) respects a few mathematical con‐
ditions called 
Mercer’s conditions
(
K
must be continuous, symmetric in its arguments
so 
K
(ab) = 
K
(ba), etc.), then there exists a function 
ϕ
that maps a and b into
another space (possibly with much higher dimensions) such that 
K
(ab) = 
ϕ
(a)
T
ϕ
(b).
So you can use 
K
as a kernel since you know 
ϕ
exists, even if you don’t know what 
ϕ
is. In the case of the Gaussian RBF kernel, it can be shown that 
ϕ
actually maps each
training instance to an infinite-dimensional space, so it’s a good thing you don’t need
to actually perform the mapping!
Note that some frequently used kernels (such as the Sigmoid kernel) don’t respect all
of Mercer’s conditions, yet they generally work well in practice.
There is still one loose end we must tie. 
Equation 5-7
 shows how to go from the dual
solution to the primal solution in the case of a linear SVM classifier, but if you apply
the kernel trick you end up with equations that include 
ϕ
(
x
(i)
). In fact, w must have
the same number of dimensions as 
ϕ
(
x
(i)
), which may be huge or even infinite, so you
can’t compute it. But how can you make predictions without knowing w? Well, the
good news is that you can plug in the formula for w from 
Equation 5-7
into the deci‐
sion function for a new instance x
(n)
, and you get an equation with only dot products
between input vectors. This makes it possible to use the kernel trick, once again
(
Equation 5-11
).
Equation 5-11. Making predictions with a kernelized SVM
h

Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   140   141   142   143   144   145   146   147   ...   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