Docsity

Bayesian Learning & SVM in Computer Vision Lecture: Maximum-Margin Separating Hyperplane, Study notes of Computer Science

Partial preview of the text

Download Bayesian Learning & SVM in Computer Vision Lecture: Maximum-Margin Separating Hyperplane and more Study notes Computer Science in PDF only on Docsity!

Support Vector MachinesSupport Vector Machines

& Computer Vision^ & Computer Vision Introduction to Artificial Intelligence

CS440/ECE448Lecture 26

1-unit projects for grad students:

Get in touch with me!

Next Tuesday: Review (everything since mid-term)

Final: May 8, 1:30 to 3pm, here

Last lectureLast lecture

-^ Bayesian learning^ • Bayesian learning•^ MAP learning^ • MAP learning•^ ML learning^ • ML learning

This lecture^ This lecture

-^ Support vector machines^ • Support vector machines•^ Computer vision^ • Computer vision

Reading^ Reading

-^ Chapters 20 and 24

Bayesian learning: ExampleBayesian learning: Example

cdtcdt

P(^

d^ | h

) =i

Πj^

P(d

| hj

)i

Prior distribution

P(H):

<0.1,0.2,0.4,0.2,0.1>

P( lime | h

)=0.5 3

Assumption: Data are iid (independently and identically distributed)

Posterior Probability of HypothesesPosterior Probability of Hypotheses^ P(h

|d) =i

α^ P(

d|h

)P(hi

) =i

α^ P(h

)^ Πi

P(dj

| hj

)i

Prediction ProbabilityPrediction Probability

MAP ApproximationMAP Approximation

ML ApproximationML Approximation

ML Parameter Learning in Bayes Nets

Support Vector MachinesSupport Vector Machines

Linearly Separable ClassesLinearly Separable Classes Maximum-margin separating hyperplane

Support Vector MachinesSupport Vector Machines

What is the maximum-margin separating plane?

(Boser, Guyon & Vapnik, 1992; Vapnik 1995)

w.x+

b^ = 0

w.x+

b^ = -

w.x+

b^ = 1

positiveexamples

negativeexamples

Support vector machinesSupport vector machines

ctdctd

-^ Examples are of the form (

x,^ i^

y), wherei^

y=i^

¨^ 1.

-^ They all verify

y

(^ w.xi

+^ bi

-^ The distance between the separating plane is 2 / |

w^ |.

-^ Thus finding the maximum margin plane amounts to– Minimizing:

w^ |^

  • subject to:

y(^ w.xi^

+^ bi ) ≥ 1 for i = 1, … ,n.

-^ A quadratic programming problem!

Kernel MachinesKernel Machines

X+X^1

(^ x^1

,^ x^2

)^

(^ X^1

,^ X^2

,^ X^3

x non-linear mapping

_1^2+

x_2^2=

Handwritten digit recognition