Docsity

Support Vector Machines (SVM) - Learning and Optimization, Slides of Mechanical Engineering

Partial preview of the text

Download Support Vector Machines (SVM) - Learning and Optimization and more Slides Mechanical Engineering in PDF only on Docsity!

Recap^ •^ We have discussed the support vector method forboth classification and regression.

Recap^ •^ We have discussed the support vector method forboth classification and regression.^ •^ The optimal

W^ is given by a linear combination of asubset of the training data vectors – the supportvectors.

-^ Learning of SVM involves solving a constrainedoptimization problem.

-^ Learning of SVM involves solving a constrainedoptimization problem. •^ We have seen a simple example of learning anonlinear SVM in

-^ The optimization problem to be solved is:^ max^ μ^

n∑q(μ) =^ μi i= n∑ (^1) − μμy ij^2 i,j= yK(X, X)ij^ ij^

subject to^

0 ≤^ μ≤^ C,^ ii^

= 1,... , n,

n∑^ yμ= 0ii^ i=1 PR NPTEL course – p.7/

-^ The optimization problem to be solved is:^ max^ μ^

n∑q(μ) =^ μi i= n∑ (^1) − μμy ij^2 i,j= yK(X, X)ij^ ij^

subject to^

0 ≤^ μ≤^ C,^ ii^

= 1,... , n,

n∑^ yμ= 0ii^ i=

-^ We need a numerical method.

PR NPTEL course – p.8/

-^ Given^ μ,^ · · ·^1

, μ, which are feasible (i.e.,n 0 ≤ μ≤ C), the conditions for optimality are:i μ= 0^ ⇒^ yi^ i

f^ (X)^ ≥^1 i 0 < μ< C^ ⇒i^

yf^ (X) = 1ii μ= C ⇒ yf^ (X)^ ≤^1 ,i ii

where ∑ f (X) = μi^ i yK(X, X)+bii

∑; b = y−^ μj i yK(X, X)iiij^ PR NPTEL course – p.10/

-^ Given^ μ,^ · · ·^1

, μ, which are feasible (i.e.,n 0 ≤ μ≤ C), the conditions for optimality are:i μ= 0^ ⇒^ yi^ i

f^ (X)^ ≥^1 i 0 < μ< C^ ⇒i^

yf^ (X) = 1ii μ= C ⇒ yf^ (X)^ ≤^1 ,i ii

where ∑ f (X) = μi^ i yK(X, X)+bii

∑; b = y−^ μj i yK(X, X)iiij^

-^ Essentially each

μis tied with one example and eachi^ has one condition to satisfy for optimality.

PR NPTEL course – p.11/

-^ One interesting idea – Chunking •^ We optimize on only a few variables at a time.

-^ One interesting idea – Chunking •^ We optimize on only a few variables at a time. •^ Dimensionality of the optimization problem iscontrolled.

-^ One interesting idea – Chunking •^ We optimize on only a few variables at a time. •^ Dimensionality of the optimization problem iscontrolled. •^ We keep randomly choosing the subset of variables. •^ Gave rise to the first specialized algorithm for SVM –SVM Light

-^ Taking chunking to extreme level – what is thesmallest set of variables we can optimize on?

-^ Taking chunking to extreme level – what is thesmallest set of variables we can optimize on? •^ We need to consider at least two variables becausethere is an equality constraint. •^ Sequential Minimal Optimization (SMO) – works onoptimizing two variables at a time.

-^ Taking chunking to extreme level – what is thesmallest set of variables we can optimize on? •^ We need to consider at least two variables becausethere is an equality constraint. •^ Sequential Minimal Optimization (SMO) – works onoptimizing two variables at a time. •^ We can analytically find the optimum with respect totwo variables.