Docsity

Large Margin Principle in Machine Learning: Maximizing the Geometric Margin - Prof. Harold, Study notes of Computer Science

Toggle sidebar
bg1
Machine Learning (CS 5350/CS 6350) 25 Sep 2008
Margins
Large margin principle: want w, b that separates the classes maximally. We assume that w, b separates
the data and achieves a functional margin of at least 1. That is, w>x+bโ‰ฅ1 for all positive xand
w>x+bโ‰ค โˆ’1 for all negative x. We defined the geometric margin based on the normalized weight vector:
ฮณ= minnyn(u>xn+b), where u=w/||w||. Compute margin as a function of normalized weight vector u,
for positive point x+and negative point xโˆ’:
ฮณโ‰ค1
2๎˜‚u>x++bโˆ’u>xโˆ’โˆ’b๎˜ƒ
ฮณ=1
2๎˜”w
||w||
>x+โˆ’w
||w||
>xโˆ’๎˜•
=1
2||w|| ๎˜‚w>x+โˆ’w>xโˆ’๎˜ƒ
=1
||w||
This shows that the margin is inversely proportional to the norm of the weight vector, and independent of
the bias. Moreover, having a large margin is equivalent to having a small weight vector norm (why does this
make intuitive sense?).
Now, we write the learning problem as an optimization problem:
minimizew
1
2||w||2
subject to yn๎˜‚w>xn+b๎˜ƒโˆ’1โ‰ฅ0 (โˆ€n)
Why large margins? Because they mean simple solutions.
1

Partial preview of the text

Download Large Margin Principle in Machine Learning: Maximizing the Geometric Margin - Prof. Harold and more Study notes Computer Science in PDF only on Docsity!

Machine Learning (CS 5350/CS 6350) 25 Sep 2008

Margins

Large margin principle: want w, b that separates the classes maximally. We assume that w, b separates

the data and achieves a functional margin of at least 1. That is, w

x + b โ‰ฅ 1 for all positive x and

w

x + b โ‰ค โˆ’1 for all negative x. We defined the geometric margin based on the normalized weight vector:

ฮณ = minn yn(u

xn + b), where u = w/ ||w||. Compute margin as a function of normalized weight vector u,

for positive point x

and negative point x โˆ’ :

ฮณ โ‰ค

[

u

x

  • b โˆ’ u

x โˆ’ โˆ’ b

]

ฮณ =

[

w

||w||

x

โˆ’

w

||w||

x โˆ’

]

2 ||w||

[

w

x

โˆ’ w

x โˆ’

]

||w||

This shows that the margin is inversely proportional to the norm of the weight vector, and independent of

the bias. Moreover, having a large margin is equivalent to having a small weight vector norm (why does this

make intuitive sense?).

Now, we write the learning problem as an optimization problem:

minimizew

||w||

2

subject to yn

[

w

xn + b

]

โˆ’ 1 โ‰ฅ 0 (โˆ€n)

Why large margins? Because they mean simple solutions.