DOC PREVIEW
UT Dallas CS 6375 - SVM-Example-solutions

This preview shows page 1 out of 2 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 2 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

SVM-Example-solutionsQuestion 1An SVM is trained with the following data:i 1 2 3xi(−1, −1) (1, 1) (0, 2)yi−1 1 1Let α1, α2, α3be the Lagrangian multipliers associated with this data. (αiis associated with (xi, yi).)AUsing the polynomial kernel of degree 2, what (dual) optimization problem needs to be solved in terms ofthe αiin order to determine their values?Reminder: the polynomial kernel of degree 2 is:K(xi, xj) = (x0ixj+ 1)2AnswerThe Gram matrix for the linear kernel: G =2 −2 −2−2 2 2−2 2 4The Gram matrix for the specified kernel: G =9 1 11 9 91 9 25Maximize: α1+ α2+ α3−129α21− 2α1α2− 2α1α3+ 9α22+ 18α2α3+ 25α23subject to: α1≥ 0, α2≥ 0, α3≥ 0, −α1+ α2+ α3= 0BThe solution to the optimization problem is:α1= 1/8, α2= 1/8, α3= 0a. What are the indexes of the support vectors? Circle them below.Answer: 1 2b. This SVM classifies the example x according to the sign of w0φ(x) + b, where the transformation φ isimplicitly defined by the kernel. Compute the value of the constant b. (This can be done withoutexplicit computation of φ or w.)Answer: Using the first support vector:b = −1 − (1 ∗ (−1) ∗ 9 + 1 ∗ 1 ∗ 1)/8 = −1 − (−9 + 8/8)/8 = 0c. What computation needs to be carried out to determine the classification of the point x = (−1, 0) by thisSVM?Answer: K(xj, x) = (4, 0).−18(4) +18(0) < 0Therefore the classification of x is −1.d. What computation needs to be carried out to determine the classification of the point x = (1, 0) by thisSVM?Answer: K(xj, x) = (0, 4).−18(0) +18(4) > 0Therefore the classification of x is


View Full Document

UT Dallas CS 6375 - SVM-Example-solutions

Documents in this Course
ensemble

ensemble

17 pages

em

em

17 pages

dtree

dtree

41 pages

cv

cv

9 pages

bayes

bayes

19 pages

vc

vc

24 pages

svm-2

svm-2

16 pages

svm-1

svm-1

18 pages

rl

rl

18 pages

mle

mle

16 pages

mdp

mdp

19 pages

knn

knn

11 pages

intro

intro

19 pages

hmm-train

hmm-train

26 pages

hmm

hmm

28 pages

hmm-train

hmm-train

26 pages

hmm

hmm

28 pages

ensemble

ensemble

17 pages

em

em

17 pages

dtree

dtree

41 pages

cv

cv

9 pages

bayes

bayes

19 pages

vc

vc

24 pages

svm-2

svm-2

16 pages

svm-1

svm-1

18 pages

rl

rl

18 pages

mle

mle

16 pages

mdp

mdp

19 pages

knn

knn

11 pages

intro

intro

19 pages

vc

vc

24 pages

svm-2

svm-2

16 pages

svm-1

svm-1

18 pages

rl

rl

18 pages

mle

mle

16 pages

mdp

mdp

19 pages

knn

knn

11 pages

intro

intro

19 pages

hmm-train

hmm-train

26 pages

hmm

hmm

28 pages

ensemble

ensemble

17 pages

em

em

17 pages

dtree

dtree

41 pages

cv

cv

9 pages

bayes

bayes

19 pages

vc

vc

24 pages

svm-2

svm-2

16 pages

svm-1

svm-1

18 pages

rl

rl

18 pages

mle

mle

16 pages

mdp

mdp

19 pages

knn

knn

11 pages

intro

intro

19 pages

hmm-train

hmm-train

26 pages

hmm

hmm

28 pages

ensemble

ensemble

17 pages

em

em

17 pages

dtree

dtree

41 pages

cv

cv

9 pages

bayes

bayes

19 pages

hw2

hw2

2 pages

hw1

hw1

4 pages

hw0

hw0

2 pages

hw5

hw5

2 pages

hw3

hw3

3 pages

20.mdp

20.mdp

19 pages

19.em

19.em

17 pages

16.svm-2

16.svm-2

16 pages

15.svm-1

15.svm-1

18 pages

14.vc

14.vc

24 pages

9.hmm

9.hmm

28 pages

5.mle

5.mle

16 pages

3.bayes

3.bayes

19 pages

2.dtree

2.dtree

41 pages

1.intro

1.intro

19 pages

21.rl

21.rl

18 pages

CNF-DNF

CNF-DNF

2 pages

ID3

ID3

4 pages

mlHw6

mlHw6

3 pages

MLHW3

MLHW3

4 pages

MLHW4

MLHW4

3 pages

ML-HW2

ML-HW2

3 pages

vcdimCMU

vcdimCMU

20 pages

hw0

hw0

2 pages

hw3

hw3

3 pages

hw2

hw2

2 pages

hw1

hw1

4 pages

9.hmm

9.hmm

28 pages

5.mle

5.mle

16 pages

3.bayes

3.bayes

19 pages

2.dtree

2.dtree

41 pages

1.intro

1.intro

19 pages

15.svm-1

15.svm-1

18 pages

14.vc

14.vc

24 pages

hw2

hw2

2 pages

hw1

hw1

4 pages

hw0

hw0

2 pages

hw3

hw3

3 pages

9.hmm

9.hmm

28 pages

5.mle

5.mle

16 pages

3.bayes

3.bayes

19 pages

2.dtree

2.dtree

41 pages

1.intro

1.intro

19 pages

Load more
Download SVM-Example-solutions
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view SVM-Example-solutions and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view SVM-Example-solutions 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?