Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!
𝐷
?
− {𝑖:𝑦𝑖=− 1 }
=
{𝑖:𝑦𝑖=+ 1 }
𝒘 = 𝒄
− 𝒄 −
?
− {𝑖:𝑦𝑖=− 1 }
=
{𝑖:𝑦𝑖=+ 1 }
𝒘 = 𝒄
− 𝒄 − Classify points according to which of the two class means 𝒄
or 𝒄 − is closer For 𝒙 ∈ 𝒳 take the sign of inner product between 𝒘 and 𝒙 − 𝒄 If ℎ 𝒙 = 𝒘, 𝒙 − 𝒄 , the classifier is 𝑓 𝒙 = 𝑠𝑖𝑔𝑛(ℎ(𝒙))
Choose a nonlinear mapping: 𝜑: 𝒳 → ℋ 𝒙 ↦ 𝜑(𝒙) 𝜑 input space 𝒳 features space ℋ
𝜑 input space 𝒳 features space ℋ ℎ 𝑥 = 𝑖= 1 ,…,𝑛
𝜑 input space 𝒳 features space ℋ input space 𝒳
𝜑 𝒙 = sin 𝑥 2 , exp 𝑥 1 + 𝑥 2 , 𝑥 1 , 𝑥 2 tan(𝑥 1 ) , … 𝑘 𝒙𝑖, 𝒙𝑗 = 𝜑 𝒙𝑖 , 𝜑(𝒙𝑗) Random feature map: 𝑘 𝒙𝑖, 𝒙𝑗 = 𝑒 (− 𝒙𝑖−𝒙𝑗 2 ) If we consider a kernel: Does it exist a map 𝜑 𝒙?
𝑛x𝑛
𝑖𝑗
𝑖
𝑗
𝑇
1 / 2
− 𝒖−𝒗 2 2 𝜎 2 𝜎 2 ∈ ℝ
M=margin width 𝒘 𝑇 𝒙
𝑇 𝒘
𝑇
min 𝑤,𝑏
2 𝑠. 𝑡.
𝑇 𝑥𝑖 + 𝑏 > + 1 𝑦𝑖 = 1 𝑤 𝑇 𝑥𝑖 + 𝑏 ≤ − 1 otherwise
min 𝑤,𝑏 max 𝜶≥𝟎
2 − 𝑖= 1 𝑛 𝛼𝑖 𝑦𝑖 𝒘 𝑇 𝒙𝑖 + 𝑏 − 1