Hands-On Machine Learning with Scikit-Learn and TensorFlow



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

w
T
x
i
+
b
≥ 1 for
i
= 1, 2,

,
m
We are minimizing 
1
2
w
T
w, which is equal to 
1
2

w 

2
, rather than
minimizing 

w 

. Indeed, 
1
2

w 

2
has a nice and simple derivative
(it is just w) while 

w 

is not differentiable at w = 0. Optimization
algorithms work much better on differentiable functions.
To get the soft margin objective, we need to introduce a 
slack variable
ζ
(i)
≥ 0 for each
instance:
4
ζ
(i)
measures how much the i
th
instance is allowed to violate the margin. We
now have two conflicting objectives: making the slack variables as small as possible to
reduce the margin violations, and making 
1
2
w
T
w as small as possible to increase the
margin. This is where the 
C
hyperparameter comes in: it allows us to define the trade‐
170 | Chapter 5: Support Vector Machines


5
To learn more about Quadratic Programming, you can start by reading Stephen Boyd and Lieven Vanden‐
berghe, 
Convex Optimization
 (Cambridge, UK: Cambridge University Press, 2004) or watch Richard Brown’s
series of video lectures
.
off between these two objectives. This gives us the constrained optimization problem
in 
Equation 5-4
.
Equation 5-4. Soft margin linear SVM classifier objective
minimize
w,
b
,
ζ
1
2w
T

Download 26,57 Mb.

Do'stlaringiz bilan baham:
1   ...   137   138   139   140   141   142   143   144   ...   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