Lecture 6: Support Vector Machines

Size: px
Start display at page:

Download "Lecture 6: Support Vector Machines"

Transcription

1 Lecture 6: Support Vector Machnes Marna Melă Department of Statstcs Unversty of Washngton November, 2018

2 Lnear SVM s The margn and the expected classfcaton error Maxmum Margn Lnear classfers Lnear classfers for non-lnearly separable data Non lnear SVM The kernel trck Kernels Predcton wth SVM Extensons L 1 SVM Mult-class and One class SVM SV Regresson Readng HTF: Ch , Murphy: Ch 14 (14.1, kernels, 14.4 and equatons (14.28,14.29) kernel trck, Support Vector Machnes) Addtonal Readng: C. Burges - A tutoral on SVM for pattern recognton These notes: Appendces (convex optmzaton) are optonal.

3 A VC bound h[1 + log(2n/h)] + log(4/δ) L 01 (θ) ˆL 01 (θ) + N }{{} R(h) wth h = VCdm F and δ < 1 the confdence. w.p. > 1 δ (1) A lnear classfer s denoted as f (x; w, b) = w T x + b, where x takes label equal to sgn(f (x; w, b)). The margn of f on data pont x s as usual equal to y f (x ; w, b).

4 The margn and the expected classfcaton error The followng two theorems suggest that large margn s a predctor of good generalzaton error. Theorem Let F ρ be the class of hyperplanes f (x) = w T x, x, w R n, that are ρ away from any data pont 1 n the tranng set D. Then, ( ) VCdm F ρ 1 + mn n, R2 D ρ 2 where R D s the radus of the smallest ball that encloses the dataset. Theorem Let F = {sgn (w T x), w Λ, x R} and let ρ > 0 be any margn. Then for any f F, w.p 1 δ over tranng sets ( L 01 (f ) ˆL c R ρ + 2 Λ 2 N ρ 2 ln N 2 + ln 1 ) (3) δ where c s a unversal constant and ˆL ρ s the fracton of the tranng examples for whch y w T x < ρ (4) A data pont that satsfes (4) for some ρ s called a margn error. For ρ = 0 the margn error rate ˆL ρ s equal to ˆL 01. Note that ρ has a dfferent meanng n the two Theorems above. (2) 1 In other words, a set D s shattered only f all the lnear classfers pass at least ρ away from ts ponts.

5 Maxmum Margn Lnear classfers Support Vector Machnes appeared from the convergence of Three Good Ideas Assume (for the moment) that the data are lnearly separable. Then, there are an nfnty of lnear classfers that have ˆL 01 = 0. Whch one to choose? Frst dea Select the classfer that has maxmum margn ρ on the tranng set. By SRM, we should choose the (w, b) parameters that mnmze ˆL(w, b) + R(h w,b ), where h w,b s gven by (2): For any parameters (w, b) that perfectly classfy the data ˆL(w, b) = 0. Among these, the best (w, b) s the one that mnmzes R(h w,b ) R(h) ncreases wth h, and h w,b decreases when ρ ncreases Hence, by SRM we should choose argmax ρ,w,b:ˆl(w,b)=0 ρ, s.t. d(x, H w,b ) ρ for = 1 : N, (5) where d() denotes the Eucldean dstance and H w,b = { x w T x + b = 0} s the decson boundary of the lnear classfer. Because d(x, H w,b ) = w T x+b w argmax ρ, s.t. ρ,w,b:ˆl(w,b)=0 (proof n a few sldes) (5) becomes w T x + b w ρ for = 1 : N, (6)

6 Maxmum Margn Lnear classfers We contnue to transform (6) If all data correctly classfed, then y (w T x + b) = w T x + b. Therefore (6) has the same soluton as argmax ρ, s.t. ρ,w,b y (w T x + b) w ρ for = 1 : N, (7) Note now that the problem (7) s underdetermned. Settng w Cw, b Cb wth C > 0 does not change anythng. We add a cleverly chosen constrant to remove the ndetermnacy; ths s w = 1/ρ, whch allows us to elmnate the varable ρ. We get argmax w,b 1 w, s.t. y (w T x + b) 1 for = 1 : N, (8) Note: the successve problems (5),(6),(7),... are equvalent n the sense that ther optmal soluton s the same.

7 Alternatve dervaton of (8) Frst dea Select the classfer that has maxmum margn on the tranng set, by the alternatve defnton of margn. Formally, defne mn =1:N y f (x ) be the margn of classfer f on D. Let f (x) = w T x + b, and choose w, b that maxmze w R n,b R mn =1:N y (w T x + b) Remarks (f data s lnearly separable), there exst classfers wth margns > 0 one can arbtrarly ncrease the margn of such a classfer by multplyng w and b by a postve constant. Hence, we need to normalze the set of canddate classfers by requrng nstead maxmze mn =1:N d(x, H w,b), s.t. y (w T x + b) 1 for = 1 : N, (9) where d() denotes the Eucldean dstance and H w,b = { x w T x + b = 0} s the decson boundary of the lnear classfer. Under the condtons of (9), because there are ponts for whch w T x + b = 1, maxmzng d(x, H w,b ) over w, b for such a pont s the same as max w,b 1 w, s.t. mn y (w T x + b) = 1 (10)

8 Second dea The Second dea s to formulate (8) as a quadratc optmzaton problem. 1 mn w,b 2 w 2 s.t y (w T x + b) 1 for all = 1 : N (11) Ths s the Lnear SVM (prmal) optmzaton problem Ths problem has a strongly convex objectve w 2, and constrants y (w T x + b) lnear n (w, b). Hence ths s a convex problem, and can be studed wth the tools of convex optmzaton.

9 The dstance of a pont x to a hyperplane H w,b d(x, H w,b ) = w T x + b w (12) Intuton: denote w = w w, b = b w, x = w T x. (13) Obvously H w,b = H w, b, and x s the length of the projecton of pont x on the drecton of w. The dstance s measured along the normal through x to H; note that f x = b then x H w,b and d(x, H w,b ) = 0; n general, the dstance along ths lne wll be x ( b).

10 Optmzaton wth Lagrange multplers 2 The Lagrangean of (11) s L(w, b, α) = 1 2 w 2 α [y (w T x + b) 1]. (14) [KKT condtons] At the optmum of (11) w = α y x wth α 0 (15) and b = y w T x for any wth α > 0. Support vector s a data pont x such that α > 0. Accordng to (15), the fnal decson boundary s determned by the support vectors (.e. does not depend explctly on any data pont that s not a support vector). 2 The dervatons of these results are n the Appendx

11 Dual SVM optmzaton problem Any convex optmzaton problem has a dual problem. In SVM, t s both llumnatng and practcal to solve the dual problem. The dual to problem (11) s max α 1:N α 1 α α j y y j x T x j s.t α 0 for all and 2 α y = 0. (16) Ths s a quadratc problem wth N varables on a convex doman. Dual problem n matrx form Denote α = [α ] =1:N, y = [y ] =1:N, G j = x T x j, Ḡ j = y y j x T x j, G = [G j ] R N N, Ḡ = [Ḡj ] R N N. max α R N 1T α 1 2 αt Ḡα s.t α 0 and y T α = 0. (17) g(α) = 1 T α 1 αt Ḡα s the dual objectve functon 2 G s called the Gram matrx of the data. Note that Ḡ = y T Gy. At the dual optmum α > 0 for constrants that are satsfed wth equalty,.e. tght α = 0 for the slack constrants

12 Non-lnearly separable problems and ther duals The C-SVM mnmze w,b,ξ 1 2 w 2 + C ξ (18) s.t. y (w T x + b) 1 ξ ξ 0 In the above, ξ are the slack varables. Dual 3 : two types of SV maxmze α s.t. α 1 α α j y y j x T x j (19) 2 C α 0 for all α y = 0 α < C data pont x s on the margn y (w T x + b) = 1 (orgnal SV) α = C data pont x cannot be classfed wth margn 1 (margn error) y (w T x + b) < 1 3 Lagrangean L(w, b, ξ, α, µ) = 1 2 w 2 + C ξ α [y (w T x + b) 1 + ξ ] µ ξ wth α 0, ξ 0, µ 0

13 The ν-svm mnmze w,b,ξ,ρ 1 2 w 2 νρ + 1 N ξ (20) s.t. y (w T x + b) ρ ξ (21) ξ 0 (22) ρ 0 (23) where ν [0, 1] s a parameter. Dual 4 : maxmze α 1 α α j y y j x T x j (24) 2 1 s.t. N α 0 for all (25) α y = 0 (26) Propertes If ρ > 0 then: α ν (27) ν s an upper bound on #margn errors/n (f α = ν) ν s a lower bound on #(orgnal support vectors + margn errors)/n ν-svm leads to the same w, b as C-SVM wth C = 1/ν 4 Lagrangean L(w, b, ξ, ρ, α, µ, δ) = 2 1 w 2 νρ + N 1 α 0, δ 0, µ 0 ξ α [y (w T x + b) ρ + ξ ] µ ξ δρ wth

14 A smple error bound [ ] #support vectors of fn+1 L 01 (f N ) E N + 1 where f N denotes the SVM traned on a sample of sze N. Exercse Use the Homework 5 Problem 3 to prove ths result. (28)

15 Non-lnear SVM How to use lnear classfer on data that s not lnearly separable? An old trck 1. Map the data x 1:N to a hgher dmensonal space x z = φ(x) H, wth dm H >> n. 2. Construct a lnear classfer w T z + b for the data n H In other words, we are mplementng the non-lnear classfer f (x) = w T φ(x) + b = w 1 φ 1 (x) + w 2 φ 2 (x) w mφ m(x) + b (29)

16 Example Data {(x, y)} below are not lnearly separable We map them to 3 dmensons by x y z z = φ(x) = [x 1 x 2 x 1 x 2 ]. Now the classes can be separated by the hypeplane z 3 = 0 (whch happens to be the maxmum margn hyperplane). Hence, w = [ ] (a vector n H) b = 0 and the classfcaton rule s f (φ(x)) = w T φ(x) + b. If we wrte f as a functon of the orgnal x we get a quadratc classfer. f (x) = x 1 x 2

17 Non-lnear SV problem Prmal problem mnmze 1 2 w 2 s.t y (w T φ(x ) + b) 1 0 for all. Dual problem max α 1:N α 1 2 α α j y y j φ(x ) T φ(x j ) }{{} Ḡ j Ḡ j has been redefned n terms of φ Dual problem Same as (17)! s.t. α 0 for all and y α = 0 (30) G j = φ(x ) T φ(x j ) and Ḡ = y T Gy (31) max α 1T α 1 2 αt Ḡα s.t. α 0, y T α = 0 (32)

18 The Kernel Trck Thrd dea The result (32) s the celebrated kernel trck of the SVM lterature. We can make the followng remarks. 1. The φ vectors enter the SVM optmzaton problem only trough the Gram matrx, thus only as the scalar products φ(x ) T φ(x j ). We denote by K(x, x ) the functon K(x, x ) = K(x, x) = φ(x) T φ(x ) (33) K s called the kernel functon. If K can be computed effcently, then the Gram matrx G can also be computed effcently. Ths s exactly what one does n practce: we choose φ mplctly by choosng a kernel K. Hereby we also ensure that K can be computed effcently. 2. Once G s obtaned, the SVM optmzaton s ndependent of the dmenson of x and of the dmenson of z = φ(x). The complexty of the SVM optmzaton depends only on N the number of examples. Ths means that we can choose a very hgh dmensonal φ wthout any penalty on the optmzaton cost. 3. Classfyng a new pont x. As we know, the SVM classfcaton rule s f (x) = w T φ(x) + b = N α y φ(x ) T φ(x) = =1 N α y K(x, x) (34) =1 Hence, the classfcaton rule s expressed n terms of the support vectors and the kernel only. No operatons other than scalar product are performed n the hgh dmensonal space H.

19 Kernels The prevous secton shows why SVMs are often called kernel machnes. If we choose a kernel, we have all the benefts of a mappng n hgh dmensons, wthout ever carryng on any operatons n that hgh dmensonal space. The most usual kernel functons are K(x, x ) = (1 + x T x ) p the polynomal kernel of degree p K(x, x ) = tanh(σx T x β) the neural network kernel K(x, x ) = e x x 2 σ 2 the Gaussan or radal bass functon (RBF) kernel t s φ s -dmensonal

20 The Mercer condton How do we verfy that a chosen K s s a vald kernel,.e that there exsts a φ so that K(x, x ) = φ(x) T φ(x )? Ths property s ensured by a postvty condton known as the Mercer condton. Mercer condton Let (X, µ) be a fnte measure space. A symmetrc functon K : X X, can be wrtten n the form K(x, x ) = φ(x) T φ(x ) for some φ : X H R m ff X 2 K(x, x )g(x)g(x )dµ(x)dµ(x ) 0 for all g such that g(x) L2 < (35) In other words, K must be a postve semdefnte operator on L 2. If K satsfes the Mercer condton, there s no guarantee that the correspondng φ s unque, or that t s fnte-dmensonal.

21 Quadratc kernel C-SVM, polynomal degree 2 kernel, N = 200, C = The two ellpses show that a constant shft to the data (x x + v, v R n ) can affect non-lnear kernel classfers.

22 RBF kernel and Support Vectors

23 Predcton wth SVM Estmatng b For any support vector, w T x + b = y because the classfcaton s tght Alternatvely, f there are slack varables, w T x + b = y (1 ξ ) Hence, b = y (1 ξ ) w T x For non-lnear SVM, where w s not known explctly, w = j α j y j φ(x j ). Hence, b = y (1 ξ ) N j=1 α j y j K(x, x j ) for any support vector Gven new x ( N ) ŷ(x) = sgn(w T x + b) = sgn α y K(x, x) + b. (36) =1

24 L1-SVM If the regularzaton w 2, based on l 2 norm, s replaced wth the l 1 norm w 1, we obtan what s known as the Lnear L1-SVM mn w,b w 1 + C ξ s.t y (w T x + b) 1 ξ, ξ 0 for all = 1 : N (37) The use of the l 1 norm promotes sparsty n the entres of w The Non-lnear L1-SVM s f (x) = (α + + α )y K(x, x) + b classfer (38) (α + + α ) + C ξ s.t y f (x ) 1 ξ, ξ, α ± 0 for all = 1 (39) : N mn α ±,b Ths formulaton enforces α + = 0 or α = 0 for all. If we set w = α + α, we can wrte f (x) = w y K(x, x) + b, a lnear classfer n the non-lnear features K(x, x). The L1-SVM problems are Lnear Programs The dual L1-SVM problems are also lnear programs The L1-SVM s no longer a Maxmum Margn classfer

25 Mult-class and One class SVM Multclass SVM For a problem wth K possble classes, we construct K separatng hyperplanes wr T x + br = 0. mnmze 1 2 K w r 2 + C ξ,r (40) N r=1,r s.t. w T y x + b y w T r x + b r + 1 ξ,r for all = 1 : N, r y (41) ξ,r 0 (42) One-class SVM Ths SVM fnds the support regons of the data, by separatng the data from the orgn by a hyperplane. It s mostly used wth the Gaussan kernel, that projects the data on the unt sphere. The formulaton below s dentcal to the ν-svm where all ponts have label 1. mnmze 1 2 w 2 νρ + 1 N ξ (43) s.t. w T x + b ρ ξ (44) ξ 0 (45) ρ 0 (46)

26 SV Regresson The dea s to construct a tolerance nterval of ±ɛ around the regressor f and to penalze data ponts for beng outsde ths tolerance margn. In words, we try to construct the smoothest functon that goes wthn ɛ of the data ponts. mnmze 1 2 w 2 + C (ξ + + ξ ) (47) s.t. ɛ + ξ + w T x + b y ɛ ξ (48) ξ ± 0 (49) ρ 0 (50) The above problem s a lnear regresson, but wth the kernel trck we obtan a kernel regressor of the form f (x) = (α α + )K(x, x) + b

27 Convex optmzaton n a nutshell A set D R n s convex ff for every two ponts x 1, x 2 D the lne segment defned by x = tx 1 + (1 t)x 2, t [0, 1] s also n D. A functon f : D R s convex ff, for any x 1, x 2 D and for any t [0, 1] for whch tx 1 + (1 t)x 2 D the followng nequalty holds f (tx 1 + (1 t)x 2 ) tf (x 1 ) + (1 t)f (x 2 ) (51) If f s convex, then the set { x f (x) c } s convex for any value of c. Convex functons defned on convex sets have very nterestng propertes whch have engendered the feld called convex optmzaton. The optmzaton problem mn x f 0 (x) (52) s.t. f (x) 0 for = 1,... m s a convex optmzaton problem f all the functons f, f are convex. Note that n ths case the feasble doman A = { x f (x) 0 } s a convex set.

28 It s known that f A has a non empty nteror then the convex optmzaton problem has at most one optmum x. If A s also bounded, x always exsts. Assumng that x exsts, there are two possble cases: (1) The unconstraned mnmum of f 0 les n A. In ths case, the optmum can be found by solvng the equatons f 0 = 0. (2) The unconstraned mnmum of f x 0 les outsde A. Fgure 1 depcts what happens at the optmum x n ths case.

29 g 2 =0 f(x)=c g(x)=0 g 1 =0 grad f f(x)=c grad f g 3 =0 grad g grad g 1 g 4 =0 f(x)=c f(x)=c grad g 4 Fgure: (a) One constrant optmzaton. (b) Four constrant optmzaton. At the optmum only constrants g 1, g 4 are actve. f denotes the objectve (f 0 n text) and g denote the constrants (f n text). Assume there s only one constrant f 1. The doman A s the nsde of the curve f 1 (x) = 0. The optmum x s the pont where a level curve f 0 (x) = c s tangent to f 1 = 0 from the outsde. In ths pont, the gradents of two curves le along the same lne, pontng n opposte drectons. Therefore, we can wrte f 0 = α f 1 x x. Equvalently, we have that at x f, 0 x + α f 1 = 0. Note that ths s a necessary but x not a suffcent condton. The above set of equatons represents the Karush-Kuhn-Tucker optmalty condtons (KKT).

30 Wth more than one constrant, the KKT condtons are equvalent to requrng that the gradent of f 0 les n the subspace spanned by the gradents of the constrants. f 0 x = α f x wth α 0 for all (53) Note that f a certan constrant f does not partcpate n the boundary of D at x,.e f the constrant s not actve, the coeffcent α should be 0. Equaton (53) can be rewrtten as x [f 0(x) + α f (x)] = 0 for some α 0 for = 1,... m (54) }{{} L(x,α) The optmum x has to satsfy the equaton above. The new functon L(x, α) s the Lagrangean of the problem and the varables α are called Lagrange multplers. The Lagrangean s convex n x and affne (.e lnear + constant) n α.

31 The dual problem Defne the functon g(α) = nf x L(x, α) α = (α ), α 0 (55) In the above, the nfmum s over all the values of x for whch f 0, f are defned, not just A (but everythng stll holds f the nfmum s only taken over A). Two facts are mportant about g g(α) L(x, α) f (x) for any x A, α 0,.e g s a lower bound for f 0, and mplctly for the optmal value f 0 (x ), for any value of α 0. g(α) s concave (.e g(α) s convex). We also can derve from (54) that f x exsts then for an approprate value α we have g(α ) = L(x, α ) = f 0 (x ) + 0 (56) and therefore g(α ) must be the unque maxmum of g(α). The second term n L above s zero because x s on the boundary of A; hence for the actve constrants f (x ) = 0 and for the nactve constrants α = 0.

32 Ths surprsng relatonshp shows that by solvng the dual problem max g(α) (57) s.t α 0 we can obtan the values α that plugged nto (53 wll allow us to fnd the soluton x to our orgnal (prmal) problem. The constrants of the dual are smpler than the constrants of the prmal. In practce, t s surprsngly often possble to compute the functon g(α) explctly. Below we gve a smple example thereof. Ths s also the case of the SVM optmzaton problem, whch wll be dscussed n secton 5.

33 A smple optmzaton example Take as an example the convex optmzaton problem mn 1 2 x2 s.t x (58) By nspecton the soluton s x = 1. Let us now apply to t the convex optmzaton machnery. We have L(x, α) = 1 2 x2 + α(x + 1) (59) defned for x R and α 0. g(α) = nf x = nf x [ ] 1 2 x2 + α(x + 1) [ 1 2 (x + α)2 1 ] 2 α2 + α (60) (61) The dual problem s = 1 2 α2 + α (62) = 1 α(2 α) attaned for x = α (63) 2 max 1 2 α(2 α) s.t α 0 (64) and ts soluton s α = 1 whch, usng equaton (63) leads to x = 1. From the KKT condton L x = x + α = 0 (65) we also obtan x = α = 1.

34 Fgure 2 depcts the functon L. Note that L s convex n x (a parabola) and that along the α axs the graph of L conssts of lnes. The areas of L that fall outsde the admssble doman x 1, α 0 are n flat (green) color. The crossecton L(x, α = 0) represents the plot of f. The constraned mnmum of f s at x = 1, the unconstraned one s at x = 0 outsde the admssble doman. Note that g(α) = L( α, α) s concave, and that n the admssble doman t s always below the graph of f. The (red) dot s the optmum (x, α ), whch represents a saddle pont for h. The lne L(x = 1, α) s horzontal (because f 1 = x + 1 = 0) and thus L(x, α ) = L(x, ) = f (x ). Fgure: The surface L(x, α) for the problem mn 1 2 x 2 s.t x

35 The SVM soluton by convex optmzaton The SVM optmzaton problem mn w 1 2 w 2 s.t. y (w T x + b) 1 for all (66) s a convex (quadratc) optmzaton problem where f 0 (w, b) = 1 2 w 2 (67) f (w, b) = y w T x + 1 y b (68) Hence, L(w, b, α) = 1 2 w 2 + α [1 y b y x T w] (69) Equatng the partal dervatves of h w.r.t w, b wth 0 we get L w = w α y x (70) L b = α y (71) or, equvalently w = α y x 0 = α y (72) Hence, the normal w to the optmal separatng hyperplane s a lnear combnaton of data ponts.

36 Sparsty of soluton Moreover, we know that only those α correspondng to actve constrants wll be non-zero. In the case of SVM, these represent ponts that are classfed wth y(w T x + b) = 1. We call these ponts support ponts or support vectors. The soluton of the SVM problem does not depend on all the data ponts, t depends only on the support vectors and therefore s sparse. Computng the soluton. SVM solvers use the dual problem to compute the soluton. Below we derve the dual for the SVM problem. g(α) s computed explctly by replacng equaton (72) n (69). After a smple calculaton we obtan g(α) = N α 1 N N y y j x T x j α α j (73) 2 =1 =1 j=1 or, n vector/matrx notaton g(α) = 1 T α 1 2 αt Gα (74) where G = [G j ] j = [y y j x T x j ] j.

37 A smple SVM problem Data: 4 vectors n the plane and ther labels x 1 = ( 2, 2) y 1 = +1 x 2 = ( 1, 1) y 2 = +1 x 3 = (1, 1) y 3 = 1 x 4 = (2, 2) y 4 = 1 The Gramm matrx G = [x T x j ],j=1:l G = The dual functon to be maxmzed (subject to α g(α) = α 1 α α j y y j x T x j 2 0) s = α 1 + α 2 + α 3 + α 4 4α 2 1 α2 2 α2 3 4α2 4 4α 1α 3 4α 2 α 4 = (2α 1 + α 3 ) (2α 1 + α 3 ) 2 α 1 +(α 2 + 2α 4 ) (α 2 + 2α 4 ) 2 α 4 The parts dependng on α 1, α 3 and α 2, α 4 can be maxmzed separately.

38 After some short calculatons we obtan: α 1 = 0 α 4 = 0 α 2 = 1 2 α 3 = 1 2 Hence, the support vectors are x 2 and x 3. From these, we obtan w = α y x = 1 2 (x 2 x 3 ) = ( 1, 0) b = y 2 w T x 2 = 0 The results are depcted n the fgure below: x2 + x3 - margn w separatng hyperplane x1 + - x4

Lecture 10 Support Vector Machines II

Lecture 10 Support Vector Machines II Lecture 10 Support Vector Machnes II 22 February 2016 Taylor B. Arnold Yale Statstcs STAT 365/665 1/28 Notes: Problem 3 s posted and due ths upcomng Frday There was an early bug n the fake-test data; fxed

More information

Lecture 3: Dual problems and Kernels

Lecture 3: Dual problems and Kernels Lecture 3: Dual problems and Kernels C4B Machne Learnng Hlary 211 A. Zsserman Prmal and dual forms Lnear separablty revsted Feature mappng Kernels for SVMs Kernel trck requrements radal bass functons SVM

More information

Support Vector Machines

Support Vector Machines Separatng boundary, defned by w Support Vector Machnes CISC 5800 Professor Danel Leeds Separatng hyperplane splts class 0 and class 1 Plane s defned by lne w perpendcular to plan Is data pont x n class

More information

Support Vector Machines. Vibhav Gogate The University of Texas at dallas

Support Vector Machines. Vibhav Gogate The University of Texas at dallas Support Vector Machnes Vbhav Gogate he Unversty of exas at dallas What We have Learned So Far? 1. Decson rees. Naïve Bayes 3. Lnear Regresson 4. Logstc Regresson 5. Perceptron 6. Neural networks 7. K-Nearest

More information

Kernel Methods and SVMs Extension

Kernel Methods and SVMs Extension Kernel Methods and SVMs Extenson The purpose of ths document s to revew materal covered n Machne Learnng 1 Supervsed Learnng regardng support vector machnes (SVMs). Ths document also provdes a general

More information

Lagrange Multipliers Kernel Trick

Lagrange Multipliers Kernel Trick Lagrange Multplers Kernel Trck Ncholas Ruozz Unversty of Texas at Dallas Based roughly on the sldes of Davd Sontag General Optmzaton A mathematcal detour, we ll come back to SVMs soon! subject to: f x

More information

Which Separator? Spring 1

Which Separator? Spring 1 Whch Separator? 6.034 - Sprng 1 Whch Separator? Mamze the margn to closest ponts 6.034 - Sprng Whch Separator? Mamze the margn to closest ponts 6.034 - Sprng 3 Margn of a pont " # y (w $ + b) proportonal

More information

Support Vector Machines

Support Vector Machines /14/018 Separatng boundary, defned by w Support Vector Machnes CISC 5800 Professor Danel Leeds Separatng hyperplane splts class 0 and class 1 Plane s defned by lne w perpendcular to plan Is data pont x

More information

Natural Language Processing and Information Retrieval

Natural Language Processing and Information Retrieval Natural Language Processng and Informaton Retreval Support Vector Machnes Alessandro Moschtt Department of nformaton and communcaton technology Unversty of Trento Emal: moschtt@ds.untn.t Summary Support

More information

Support Vector Machines

Support Vector Machines Support Vector Machnes Konstantn Tretyakov (kt@ut.ee) MTAT.03.227 Machne Learnng So far So far Supervsed machne learnng Lnear models Non-lnear models Unsupervsed machne learnng Generc scaffoldng So far

More information

Support Vector Machines CS434

Support Vector Machines CS434 Support Vector Machnes CS434 Lnear Separators Many lnear separators exst that perfectly classfy all tranng examples Whch of the lnear separators s the best? + + + + + + + + + Intuton of Margn Consder ponts

More information

Support Vector Machines

Support Vector Machines CS 2750: Machne Learnng Support Vector Machnes Prof. Adrana Kovashka Unversty of Pttsburgh February 17, 2016 Announcement Homework 2 deadlne s now 2/29 We ll have covered everythng you need today or at

More information

Linear Classification, SVMs and Nearest Neighbors

Linear Classification, SVMs and Nearest Neighbors 1 CSE 473 Lecture 25 (Chapter 18) Lnear Classfcaton, SVMs and Nearest Neghbors CSE AI faculty + Chrs Bshop, Dan Klen, Stuart Russell, Andrew Moore Motvaton: Face Detecton How do we buld a classfer to dstngush

More information

Support Vector Machines

Support Vector Machines Support Vector Machnes Konstantn Tretyakov (kt@ut.ee) MTAT.03.227 Machne Learnng So far Supervsed machne learnng Lnear models Least squares regresson Fsher s dscrmnant, Perceptron, Logstc model Non-lnear

More information

Support Vector Machines. Jie Tang Knowledge Engineering Group Department of Computer Science and Technology Tsinghua University 2012

Support Vector Machines. Jie Tang Knowledge Engineering Group Department of Computer Science and Technology Tsinghua University 2012 Support Vector Machnes Je Tang Knowledge Engneerng Group Department of Computer Scence and Technology Tsnghua Unversty 2012 1 Outlne What s a Support Vector Machne? Solvng SVMs Kernel Trcks 2 What s a

More information

Assortment Optimization under MNL

Assortment Optimization under MNL Assortment Optmzaton under MNL Haotan Song Aprl 30, 2017 1 Introducton The assortment optmzaton problem ams to fnd the revenue-maxmzng assortment of products to offer when the prces of products are fxed.

More information

U.C. Berkeley CS294: Beyond Worst-Case Analysis Luca Trevisan September 5, 2017

U.C. Berkeley CS294: Beyond Worst-Case Analysis Luca Trevisan September 5, 2017 U.C. Berkeley CS94: Beyond Worst-Case Analyss Handout 4s Luca Trevsan September 5, 07 Summary of Lecture 4 In whch we ntroduce semdefnte programmng and apply t to Max Cut. Semdefnte Programmng Recall that

More information

princeton univ. F 17 cos 521: Advanced Algorithm Design Lecture 7: LP Duality Lecturer: Matt Weinberg

princeton univ. F 17 cos 521: Advanced Algorithm Design Lecture 7: LP Duality Lecturer: Matt Weinberg prnceton unv. F 17 cos 521: Advanced Algorthm Desgn Lecture 7: LP Dualty Lecturer: Matt Wenberg Scrbe: LP Dualty s an extremely useful tool for analyzng structural propertes of lnear programs. Whle there

More information

Support Vector Machines CS434

Support Vector Machines CS434 Support Vector Machnes CS434 Lnear Separators Many lnear separators exst that perfectly classfy all tranng examples Whch of the lnear separators s the best? Intuton of Margn Consder ponts A, B, and C We

More information

Lecture Notes on Linear Regression

Lecture Notes on Linear Regression Lecture Notes on Lnear Regresson Feng L fl@sdueducn Shandong Unversty, Chna Lnear Regresson Problem In regresson problem, we am at predct a contnuous target value gven an nput feature vector We assume

More information

Solutions HW #2. minimize. Ax = b. Give the dual problem, and make the implicit equality constraints explicit. Solution.

Solutions HW #2. minimize. Ax = b. Give the dual problem, and make the implicit equality constraints explicit. Solution. Solutons HW #2 Dual of general LP. Fnd the dual functon of the LP mnmze subject to c T x Gx h Ax = b. Gve the dual problem, and make the mplct equalty constrants explct. Soluton. 1. The Lagrangan s L(x,

More information

ADVANCED MACHINE LEARNING ADVANCED MACHINE LEARNING

ADVANCED MACHINE LEARNING ADVANCED MACHINE LEARNING 1 ADVANCED ACHINE LEARNING ADVANCED ACHINE LEARNING Non-lnear regresson technques 2 ADVANCED ACHINE LEARNING Regresson: Prncple N ap N-dm. nput x to a contnuous output y. Learn a functon of the type: N

More information

Solutions to exam in SF1811 Optimization, Jan 14, 2015

Solutions to exam in SF1811 Optimization, Jan 14, 2015 Solutons to exam n SF8 Optmzaton, Jan 4, 25 3 3 O------O -4 \ / \ / The network: \/ where all lnks go from left to rght. /\ / \ / \ 6 O------O -5 2 4.(a) Let x = ( x 3, x 4, x 23, x 24 ) T, where the varable

More information

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix

Lectures - Week 4 Matrix norms, Conditioning, Vector Spaces, Linear Independence, Spanning sets and Basis, Null space and Range of a Matrix Lectures - Week 4 Matrx norms, Condtonng, Vector Spaces, Lnear Independence, Spannng sets and Bass, Null space and Range of a Matrx Matrx Norms Now we turn to assocatng a number to each matrx. We could

More information

Maximal Margin Classifier

Maximal Margin Classifier CS81B/Stat41B: Advanced Topcs n Learnng & Decson Makng Mamal Margn Classfer Lecturer: Mchael Jordan Scrbes: Jana van Greunen Corrected verson - /1/004 1 References/Recommended Readng 1.1 Webstes www.kernel-machnes.org

More information

Lecture 10 Support Vector Machines. Oct

Lecture 10 Support Vector Machines. Oct Lecture 10 Support Vector Machnes Oct - 20-2008 Lnear Separators Whch of the lnear separators s optmal? Concept of Margn Recall that n Perceptron, we learned that the convergence rate of the Perceptron

More information

C4B Machine Learning Answers II. = σ(z) (1 σ(z)) 1 1 e z. e z = σ(1 σ) (1 + e z )

C4B Machine Learning Answers II. = σ(z) (1 σ(z)) 1 1 e z. e z = σ(1 σ) (1 + e z ) C4B Machne Learnng Answers II.(a) Show that for the logstc sgmod functon dσ(z) dz = σ(z) ( σ(z)) A. Zsserman, Hlary Term 20 Start from the defnton of σ(z) Note that Then σ(z) = σ = dσ(z) dz = + e z e z

More information

Chapter 6 Support vector machine. Séparateurs à vaste marge

Chapter 6 Support vector machine. Séparateurs à vaste marge Chapter 6 Support vector machne Séparateurs à vaste marge Méthode de classfcaton bnare par apprentssage Introdute par Vladmr Vapnk en 1995 Repose sur l exstence d un classfcateur lnéare Apprentssage supervsé

More information

APPENDIX A Some Linear Algebra

APPENDIX A Some Linear Algebra APPENDIX A Some Lnear Algebra The collecton of m, n matrces A.1 Matrces a 1,1,..., a 1,n A = a m,1,..., a m,n wth real elements a,j s denoted by R m,n. If n = 1 then A s called a column vector. Smlarly,

More information

MMA and GCMMA two methods for nonlinear optimization

MMA and GCMMA two methods for nonlinear optimization MMA and GCMMA two methods for nonlnear optmzaton Krster Svanberg Optmzaton and Systems Theory, KTH, Stockholm, Sweden. krlle@math.kth.se Ths note descrbes the algorthms used n the author s 2007 mplementatons

More information

10-701/ Machine Learning, Fall 2005 Homework 3

10-701/ Machine Learning, Fall 2005 Homework 3 10-701/15-781 Machne Learnng, Fall 2005 Homework 3 Out: 10/20/05 Due: begnnng of the class 11/01/05 Instructons Contact questons-10701@autonlaborg for queston Problem 1 Regresson and Cross-valdaton [40

More information

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0

n α j x j = 0 j=1 has a nontrivial solution. Here A is the n k matrix whose jth column is the vector for all t j=0 MODULE 2 Topcs: Lnear ndependence, bass and dmenson We have seen that f n a set of vectors one vector s a lnear combnaton of the remanng vectors n the set then the span of the set s unchanged f that vector

More information

PHYS 705: Classical Mechanics. Calculus of Variations II

PHYS 705: Classical Mechanics. Calculus of Variations II 1 PHYS 705: Classcal Mechancs Calculus of Varatons II 2 Calculus of Varatons: Generalzaton (no constrant yet) Suppose now that F depends on several dependent varables : We need to fnd such that has a statonary

More information

Maximum Likelihood Estimation (MLE)

Maximum Likelihood Estimation (MLE) Maxmum Lkelhood Estmaton (MLE) Ken Kreutz-Delgado (Nuno Vasconcelos) ECE 175A Wnter 01 UCSD Statstcal Learnng Goal: Gven a relatonshp between a feature vector x and a vector y, and d data samples (x,y

More information

CS 3710: Visual Recognition Classification and Detection. Adriana Kovashka Department of Computer Science January 13, 2015

CS 3710: Visual Recognition Classification and Detection. Adriana Kovashka Department of Computer Science January 13, 2015 CS 3710: Vsual Recognton Classfcaton and Detecton Adrana Kovashka Department of Computer Scence January 13, 2015 Plan for Today Vsual recognton bascs part 2: Classfcaton and detecton Adrana s research

More information

Kernels in Support Vector Machines. Based on lectures of Martin Law, University of Michigan

Kernels in Support Vector Machines. Based on lectures of Martin Law, University of Michigan Kernels n Support Vector Machnes Based on lectures of Martn Law, Unversty of Mchgan Non Lnear separable problems AND OR NOT() The XOR problem cannot be solved wth a perceptron. XOR Per Lug Martell - Systems

More information

6.854J / J Advanced Algorithms Fall 2008

6.854J / J Advanced Algorithms Fall 2008 MIT OpenCourseWare http://ocw.mt.edu 6.854J / 18.415J Advanced Algorthms Fall 2008 For nformaton about ctng these materals or our Terms of Use, vst: http://ocw.mt.edu/terms. 18.415/6.854 Advanced Algorthms

More information

Report on Image warping

Report on Image warping Report on Image warpng Xuan Ne, Dec. 20, 2004 Ths document summarzed the algorthms of our mage warpng soluton for further study, and there s a detaled descrpton about the mplementaton of these algorthms.

More information

Linear Feature Engineering 11

Linear Feature Engineering 11 Lnear Feature Engneerng 11 2 Least-Squares 2.1 Smple least-squares Consder the followng dataset. We have a bunch of nputs x and correspondng outputs y. The partcular values n ths dataset are x y 0.23 0.19

More information

Kristin P. Bennett. Rensselaer Polytechnic Institute

Kristin P. Bennett. Rensselaer Polytechnic Institute Support Vector Machnes and Other Kernel Methods Krstn P. Bennett Mathematcal Scences Department Rensselaer Polytechnc Insttute Support Vector Machnes (SVM) A methodology for nference based on Statstcal

More information

Convex Optimization. Optimality conditions. (EE227BT: UC Berkeley) Lecture 9 (Optimality; Conic duality) 9/25/14. Laurent El Ghaoui.

Convex Optimization. Optimality conditions. (EE227BT: UC Berkeley) Lecture 9 (Optimality; Conic duality) 9/25/14. Laurent El Ghaoui. Convex Optmzaton (EE227BT: UC Berkeley) Lecture 9 (Optmalty; Conc dualty) 9/25/14 Laurent El Ghaou Organsatonal Mdterm: 10/7/14 (1.5 hours, n class, double-sded cheat sheet allowed) Project: Intal proposal

More information

Generalized Linear Methods

Generalized Linear Methods Generalzed Lnear Methods 1 Introducton In the Ensemble Methods the general dea s that usng a combnaton of several weak learner one could make a better learner. More formally, assume that we have a set

More information

Image classification. Given the bag-of-features representations of images from different classes, how do we learn a model for distinguishing i them?

Image classification. Given the bag-of-features representations of images from different classes, how do we learn a model for distinguishing i them? Image classfcaton Gven te bag-of-features representatons of mages from dfferent classes ow do we learn a model for dstngusng tem? Classfers Learn a decson rule assgnng bag-offeatures representatons of

More information

15 Lagrange Multipliers

15 Lagrange Multipliers 15 The Method of s a powerful technque for constraned optmzaton. Whle t has applcatons far beyond machne learnng t was orgnally developed to solve physcs equatons), t s used for several ey dervatons n

More information

8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS

8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS SECTION 8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS 493 8.4 COMPLEX VECTOR SPACES AND INNER PRODUCTS All the vector spaces you have studed thus far n the text are real vector spaces because the scalars

More information

Linear Approximation with Regularization and Moving Least Squares

Linear Approximation with Regularization and Moving Least Squares Lnear Approxmaton wth Regularzaton and Movng Least Squares Igor Grešovn May 007 Revson 4.6 (Revson : March 004). 5 4 3 0.5 3 3.5 4 Contents: Lnear Fttng...4. Weghted Least Squares n Functon Approxmaton...

More information

CSE 252C: Computer Vision III

CSE 252C: Computer Vision III CSE 252C: Computer Vson III Lecturer: Serge Belonge Scrbe: Catherne Wah LECTURE 15 Kernel Machnes 15.1. Kernels We wll study two methods based on a specal knd of functon k(x, y) called a kernel: Kernel

More information

2E Pattern Recognition Solutions to Introduction to Pattern Recognition, Chapter 2: Bayesian pattern classification

2E Pattern Recognition Solutions to Introduction to Pattern Recognition, Chapter 2: Bayesian pattern classification E395 - Pattern Recognton Solutons to Introducton to Pattern Recognton, Chapter : Bayesan pattern classfcaton Preface Ths document s a soluton manual for selected exercses from Introducton to Pattern Recognton

More information

Feature Selection: Part 1

Feature Selection: Part 1 CSE 546: Machne Learnng Lecture 5 Feature Selecton: Part 1 Instructor: Sham Kakade 1 Regresson n the hgh dmensonal settng How do we learn when the number of features d s greater than the sample sze n?

More information

Intro to Visual Recognition

Intro to Visual Recognition CS 2770: Computer Vson Intro to Vsual Recognton Prof. Adrana Kovashka Unversty of Pttsburgh February 13, 2018 Plan for today What s recognton? a.k.a. classfcaton, categorzaton Support vector machnes Separable

More information

14 Lagrange Multipliers

14 Lagrange Multipliers Lagrange Multplers 14 Lagrange Multplers The Method of Lagrange Multplers s a powerful technque for constraned optmzaton. Whle t has applcatons far beyond machne learnng t was orgnally developed to solve

More information

Nonlinear Classifiers II

Nonlinear Classifiers II Nonlnear Classfers II Nonlnear Classfers: Introducton Classfers Supervsed Classfers Lnear Classfers Perceptron Least Squares Methods Lnear Support Vector Machne Nonlnear Classfers Part I: Mult Layer Neural

More information

Lecture 20: November 7

Lecture 20: November 7 0-725/36-725: Convex Optmzaton Fall 205 Lecturer: Ryan Tbshran Lecture 20: November 7 Scrbes: Varsha Chnnaobreddy, Joon Sk Km, Lngyao Zhang Note: LaTeX template courtesy of UC Berkeley EECS dept. Dsclamer:

More information

Module 9. Lecture 6. Duality in Assignment Problems

Module 9. Lecture 6. Duality in Assignment Problems Module 9 1 Lecture 6 Dualty n Assgnment Problems In ths lecture we attempt to answer few other mportant questons posed n earler lecture for (AP) and see how some of them can be explaned through the concept

More information

17 Support Vector Machines

17 Support Vector Machines 17 We now dscuss an nfluental and effectve classfcaton algorthm called (SVMs). In addton to ther successes n many classfcaton problems, SVMs are responsble for ntroducng and/or popularzng several mportant

More information

18-660: Numerical Methods for Engineering Design and Optimization

18-660: Numerical Methods for Engineering Design and Optimization 8-66: Numercal Methods for Engneerng Desgn and Optmzaton n L Department of EE arnege Mellon Unversty Pttsburgh, PA 53 Slde Overve lassfcaton Support vector machne Regularzaton Slde lassfcaton Predct categorcal

More information

COS 521: Advanced Algorithms Game Theory and Linear Programming

COS 521: Advanced Algorithms Game Theory and Linear Programming COS 521: Advanced Algorthms Game Theory and Lnear Programmng Moses Charkar February 27, 2013 In these notes, we ntroduce some basc concepts n game theory and lnear programmng (LP). We show a connecton

More information

The Geometry of Logit and Probit

The Geometry of Logit and Probit The Geometry of Logt and Probt Ths short note s meant as a supplement to Chapters and 3 of Spatal Models of Parlamentary Votng and the notaton and reference to fgures n the text below s to those two chapters.

More information

Advanced Introduction to Machine Learning

Advanced Introduction to Machine Learning Advanced Introducton to Machne Learnng 10715, Fall 2014 The Kernel Trck, Reproducng Kernel Hlbert Space, and the Representer Theorem Erc Xng Lecture 6, September 24, 2014 Readng: Erc Xng @ CMU, 2014 1

More information

SELECTED SOLUTIONS, SECTION (Weak duality) Prove that the primal and dual values p and d defined by equations (4.3.2) and (4.3.3) satisfy p d.

SELECTED SOLUTIONS, SECTION (Weak duality) Prove that the primal and dual values p and d defined by equations (4.3.2) and (4.3.3) satisfy p d. SELECTED SOLUTIONS, SECTION 4.3 1. Weak dualty Prove that the prmal and dual values p and d defned by equatons 4.3. and 4.3.3 satsfy p d. We consder an optmzaton problem of the form The Lagrangan for ths

More information

FMA901F: Machine Learning Lecture 5: Support Vector Machines. Cristian Sminchisescu

FMA901F: Machine Learning Lecture 5: Support Vector Machines. Cristian Sminchisescu FMA901F: Machne Learnng Lecture 5: Support Vector Machnes Crstan Smnchsescu Back to Bnary Classfcaton Setup We are gven a fnte, possbly nosy, set of tranng data:,, 1,..,. Each nput s pared wth a bnary

More information

10-801: Advanced Optimization and Randomized Methods Lecture 2: Convex functions (Jan 15, 2014)

10-801: Advanced Optimization and Randomized Methods Lecture 2: Convex functions (Jan 15, 2014) 0-80: Advanced Optmzaton and Randomzed Methods Lecture : Convex functons (Jan 5, 04) Lecturer: Suvrt Sra Addr: Carnege Mellon Unversty, Sprng 04 Scrbes: Avnava Dubey, Ahmed Hefny Dsclamer: These notes

More information

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results.

For now, let us focus on a specific model of neurons. These are simplified from reality but can achieve remarkable results. Neural Networks : Dervaton compled by Alvn Wan from Professor Jtendra Malk s lecture Ths type of computaton s called deep learnng and s the most popular method for many problems, such as computer vson

More information

Lecture 20: Lift and Project, SDP Duality. Today we will study the Lift and Project method. Then we will prove the SDP duality theorem.

Lecture 20: Lift and Project, SDP Duality. Today we will study the Lift and Project method. Then we will prove the SDP duality theorem. prnceton u. sp 02 cos 598B: algorthms and complexty Lecture 20: Lft and Project, SDP Dualty Lecturer: Sanjeev Arora Scrbe:Yury Makarychev Today we wll study the Lft and Project method. Then we wll prove

More information

CSci 6974 and ECSE 6966 Math. Tech. for Vision, Graphics and Robotics Lecture 21, April 17, 2006 Estimating A Plane Homography

CSci 6974 and ECSE 6966 Math. Tech. for Vision, Graphics and Robotics Lecture 21, April 17, 2006 Estimating A Plane Homography CSc 6974 and ECSE 6966 Math. Tech. for Vson, Graphcs and Robotcs Lecture 21, Aprl 17, 2006 Estmatng A Plane Homography Overvew We contnue wth a dscusson of the major ssues, usng estmaton of plane projectve

More information

APPROXIMATE PRICES OF BASKET AND ASIAN OPTIONS DUPONT OLIVIER. Premia 14

APPROXIMATE PRICES OF BASKET AND ASIAN OPTIONS DUPONT OLIVIER. Premia 14 APPROXIMAE PRICES OF BASKE AND ASIAN OPIONS DUPON OLIVIER Prema 14 Contents Introducton 1 1. Framewor 1 1.1. Baset optons 1.. Asan optons. Computng the prce 3. Lower bound 3.1. Closed formula for the prce

More information

Learning Theory: Lecture Notes

Learning Theory: Lecture Notes Learnng Theory: Lecture Notes Lecturer: Kamalka Chaudhur Scrbe: Qush Wang October 27, 2012 1 The Agnostc PAC Model Recall that one of the constrants of the PAC model s that the data dstrbuton has to be

More information

The exam is closed book, closed notes except your one-page cheat sheet.

The exam is closed book, closed notes except your one-page cheat sheet. CS 89 Fall 206 Introducton to Machne Learnng Fnal Do not open the exam before you are nstructed to do so The exam s closed book, closed notes except your one-page cheat sheet Usage of electronc devces

More information

Some modelling aspects for the Matlab implementation of MMA

Some modelling aspects for the Matlab implementation of MMA Some modellng aspects for the Matlab mplementaton of MMA Krster Svanberg krlle@math.kth.se Optmzaton and Systems Theory Department of Mathematcs KTH, SE 10044 Stockholm September 2004 1. Consdered optmzaton

More information

CIS526: Machine Learning Lecture 3 (Sept 16, 2003) Linear Regression. Preparation help: Xiaoying Huang. x 1 θ 1 output... θ M x M

CIS526: Machine Learning Lecture 3 (Sept 16, 2003) Linear Regression. Preparation help: Xiaoying Huang. x 1 θ 1 output... θ M x M CIS56: achne Learnng Lecture 3 (Sept 6, 003) Preparaton help: Xaoyng Huang Lnear Regresson Lnear regresson can be represented by a functonal form: f(; θ) = θ 0 0 +θ + + θ = θ = 0 ote: 0 s a dummy attrbute

More information

The Second Anti-Mathima on Game Theory

The Second Anti-Mathima on Game Theory The Second Ant-Mathma on Game Theory Ath. Kehagas December 1 2006 1 Introducton In ths note we wll examne the noton of game equlbrum for three types of games 1. 2-player 2-acton zero-sum games 2. 2-player

More information

INF 5860 Machine learning for image classification. Lecture 3 : Image classification and regression part II Anne Solberg January 31, 2018

INF 5860 Machine learning for image classification. Lecture 3 : Image classification and regression part II Anne Solberg January 31, 2018 INF 5860 Machne learnng for mage classfcaton Lecture 3 : Image classfcaton and regresson part II Anne Solberg January 3, 08 Today s topcs Multclass logstc regresson and softma Regularzaton Image classfcaton

More information

Inner Product. Euclidean Space. Orthonormal Basis. Orthogonal

Inner Product. Euclidean Space. Orthonormal Basis. Orthogonal Inner Product Defnton 1 () A Eucldean space s a fnte-dmensonal vector space over the reals R, wth an nner product,. Defnton 2 (Inner Product) An nner product, on a real vector space X s a symmetrc, blnear,

More information

Fisher Linear Discriminant Analysis

Fisher Linear Discriminant Analysis Fsher Lnear Dscrmnant Analyss Max Wellng Department of Computer Scence Unversty of Toronto 10 Kng s College Road Toronto, M5S 3G5 Canada wellng@cs.toronto.edu Abstract Ths s a note to explan Fsher lnear

More information

P R. Lecture 4. Theory and Applications of Pattern Recognition. Dept. of Electrical and Computer Engineering /

P R. Lecture 4. Theory and Applications of Pattern Recognition. Dept. of Electrical and Computer Engineering / Theory and Applcatons of Pattern Recognton 003, Rob Polkar, Rowan Unversty, Glassboro, NJ Lecture 4 Bayes Classfcaton Rule Dept. of Electrcal and Computer Engneerng 0909.40.0 / 0909.504.04 Theory & Applcatons

More information

Pattern Classification

Pattern Classification Pattern Classfcaton All materals n these sldes ere taken from Pattern Classfcaton (nd ed) by R. O. Duda, P. E. Hart and D. G. Stork, John Wley & Sons, 000 th the permsson of the authors and the publsher

More information

Lecture 12: Classification

Lecture 12: Classification Lecture : Classfcaton g Dscrmnant functons g The optmal Bayes classfer g Quadratc classfers g Eucldean and Mahalanobs metrcs g K Nearest Neghbor Classfers Intellgent Sensor Systems Rcardo Guterrez-Osuna

More information

CSE 546 Midterm Exam, Fall 2014(with Solution)

CSE 546 Midterm Exam, Fall 2014(with Solution) CSE 546 Mdterm Exam, Fall 014(wth Soluton) 1. Personal nfo: Name: UW NetID: Student ID:. There should be 14 numbered pages n ths exam (ncludng ths cover sheet). 3. You can use any materal you brought:

More information

Linear, affine, and convex sets and hulls In the sequel, unless otherwise specified, X will denote a real vector space.

Linear, affine, and convex sets and hulls In the sequel, unless otherwise specified, X will denote a real vector space. Lnear, affne, and convex sets and hulls In the sequel, unless otherwse specfed, X wll denote a real vector space. Lnes and segments. Gven two ponts x, y X, we defne xy = {x + t(y x) : t R} = {(1 t)x +

More information

Math1110 (Spring 2009) Prelim 3 - Solutions

Math1110 (Spring 2009) Prelim 3 - Solutions Math 1110 (Sprng 2009) Solutons to Prelm 3 (04/21/2009) 1 Queston 1. (16 ponts) Short answer. Math1110 (Sprng 2009) Prelm 3 - Solutons x a 1 (a) (4 ponts) Please evaluate lm, where a and b are postve numbers.

More information

Lecture 21: Numerical methods for pricing American type derivatives

Lecture 21: Numerical methods for pricing American type derivatives Lecture 21: Numercal methods for prcng Amercan type dervatves Xaoguang Wang STAT 598W Aprl 10th, 2014 (STAT 598W) Lecture 21 1 / 26 Outlne 1 Fnte Dfference Method Explct Method Penalty Method (STAT 598W)

More information

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 8 Luca Trevisan February 17, 2016

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 8 Luca Trevisan February 17, 2016 U.C. Berkeley CS94: Spectral Methods and Expanders Handout 8 Luca Trevsan February 7, 06 Lecture 8: Spectral Algorthms Wrap-up In whch we talk about even more generalzatons of Cheeger s nequaltes, and

More information

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur

Module 3 LOSSY IMAGE COMPRESSION SYSTEMS. Version 2 ECE IIT, Kharagpur Module 3 LOSSY IMAGE COMPRESSION SYSTEMS Verson ECE IIT, Kharagpur Lesson 6 Theory of Quantzaton Verson ECE IIT, Kharagpur Instructonal Objectves At the end of ths lesson, the students should be able to:

More information

Vector Norms. Chapter 7 Iterative Techniques in Matrix Algebra. Cauchy-Bunyakovsky-Schwarz Inequality for Sums. Distances. Convergence.

Vector Norms. Chapter 7 Iterative Techniques in Matrix Algebra. Cauchy-Bunyakovsky-Schwarz Inequality for Sums. Distances. Convergence. Vector Norms Chapter 7 Iteratve Technques n Matrx Algebra Per-Olof Persson persson@berkeley.edu Department of Mathematcs Unversty of Calforna, Berkeley Math 128B Numercal Analyss Defnton A vector norm

More information

1 Matrix representations of canonical matrices

1 Matrix representations of canonical matrices 1 Matrx representatons of canoncal matrces 2-d rotaton around the orgn: ( ) cos θ sn θ R 0 = sn θ cos θ 3-d rotaton around the x-axs: R x = 1 0 0 0 cos θ sn θ 0 sn θ cos θ 3-d rotaton around the y-axs:

More information

UVA CS / Introduc8on to Machine Learning and Data Mining. Lecture 10: Classifica8on with Support Vector Machine (cont.

UVA CS / Introduc8on to Machine Learning and Data Mining. Lecture 10: Classifica8on with Support Vector Machine (cont. UVA CS 4501-001 / 6501 007 Introduc8on to Machne Learnng and Data Mnng Lecture 10: Classfca8on wth Support Vector Machne (cont. ) Yanjun Q / Jane Unversty of Vrgna Department of Computer Scence 9/6/14

More information

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems

Chapter 5. Solution of System of Linear Equations. Module No. 6. Solution of Inconsistent and Ill Conditioned Systems Numercal Analyss by Dr. Anta Pal Assstant Professor Department of Mathematcs Natonal Insttute of Technology Durgapur Durgapur-713209 emal: anta.bue@gmal.com 1 . Chapter 5 Soluton of System of Lnear Equatons

More information

Math 217 Fall 2013 Homework 2 Solutions

Math 217 Fall 2013 Homework 2 Solutions Math 17 Fall 013 Homework Solutons Due Thursday Sept. 6, 013 5pm Ths homework conssts of 6 problems of 5 ponts each. The total s 30. You need to fully justfy your answer prove that your functon ndeed has

More information

Difference Equations

Difference Equations Dfference Equatons c Jan Vrbk 1 Bascs Suppose a sequence of numbers, say a 0,a 1,a,a 3,... s defned by a certan general relatonshp between, say, three consecutve values of the sequence, e.g. a + +3a +1

More information

Multilayer Perceptron (MLP)

Multilayer Perceptron (MLP) Multlayer Perceptron (MLP) Seungjn Cho Department of Computer Scence and Engneerng Pohang Unversty of Scence and Technology 77 Cheongam-ro, Nam-gu, Pohang 37673, Korea seungjn@postech.ac.kr 1 / 20 Outlne

More information

Lecture 12: Discrete Laplacian

Lecture 12: Discrete Laplacian Lecture 12: Dscrete Laplacan Scrbe: Tanye Lu Our goal s to come up wth a dscrete verson of Laplacan operator for trangulated surfaces, so that we can use t n practce to solve related problems We are mostly

More information

The Expectation-Maximization Algorithm

The Expectation-Maximization Algorithm The Expectaton-Maxmaton Algorthm Charles Elan elan@cs.ucsd.edu November 16, 2007 Ths chapter explans the EM algorthm at multple levels of generalty. Secton 1 gves the standard hgh-level verson of the algorthm.

More information

CSC 411 / CSC D11 / CSC C11

CSC 411 / CSC D11 / CSC C11 18 Boostng s a general strategy for learnng classfers by combnng smpler ones. The dea of boostng s to take a weak classfer that s, any classfer that wll do at least slghtly better than chance and use t

More information

Salmon: Lectures on partial differential equations. Consider the general linear, second-order PDE in the form. ,x 2

Salmon: Lectures on partial differential equations. Consider the general linear, second-order PDE in the form. ,x 2 Salmon: Lectures on partal dfferental equatons 5. Classfcaton of second-order equatons There are general methods for classfyng hgher-order partal dfferental equatons. One s very general (applyng even to

More information

1 Gradient descent for convex functions: univariate case

1 Gradient descent for convex functions: univariate case prnceton unv. F 13 cos 51: Advanced Algorthm Desgn Lecture 19: Gong wth the slope: offlne, onlne, and randomly Lecturer: Sanjeev Arora Scrbe: hs lecture s about gradent descent, a popular method for contnuous

More information

The Minimum Universal Cost Flow in an Infeasible Flow Network

The Minimum Universal Cost Flow in an Infeasible Flow Network Journal of Scences, Islamc Republc of Iran 17(2): 175-180 (2006) Unversty of Tehran, ISSN 1016-1104 http://jscencesutacr The Mnmum Unversal Cost Flow n an Infeasble Flow Network H Saleh Fathabad * M Bagheran

More information

Structural Extensions of Support Vector Machines. Mark Schmidt March 30, 2009

Structural Extensions of Support Vector Machines. Mark Schmidt March 30, 2009 Structural Extensons of Support Vector Machnes Mark Schmdt March 30, 2009 Formulaton: Bnary SVMs Multclass SVMs Structural SVMs Tranng: Subgradents Cuttng Planes Margnal Formulatons Mn-Max Formulatons

More information

Supplement: Proofs and Technical Details for The Solution Path of the Generalized Lasso

Supplement: Proofs and Technical Details for The Solution Path of the Generalized Lasso Supplement: Proofs and Techncal Detals for The Soluton Path of the Generalzed Lasso Ryan J. Tbshran Jonathan Taylor In ths document we gve supplementary detals to the paper The Soluton Path of the Generalzed

More information

Support Vector Novelty Detection

Support Vector Novelty Detection Support Vector Novelty Detecton Dscusson of Support Vector Method for Novelty Detecton (NIPS 2000) and Estmatng the Support of a Hgh- Dmensonal Dstrbuton (Neural Computaton 13, 2001) Bernhard Scholkopf,

More information

CSCI B609: Foundations of Data Science

CSCI B609: Foundations of Data Science CSCI B609: Foundatons of Data Scence Lecture 13/14: Gradent Descent, Boostng and Learnng from Experts Sldes at http://grgory.us/data-scence-class.html Grgory Yaroslavtsev http://grgory.us Constraned Convex

More information