CSC 411 Lecture 9: SVMs and Boosting
Roger Grosse, Amir-massoud Farahmand, and Juan Carrasquilla
University of Toronto
UofT CSC 411: 09-Classification Odds and Ends 1 / 34
CSC 411 Lecture 9: SVMs and Boosting Roger Grosse, Amir-massoud - - PowerPoint PPT Presentation
CSC 411 Lecture 9: SVMs and Boosting Roger Grosse, Amir-massoud Farahmand, and Juan Carrasquilla University of Toronto UofT CSC 411: 09-Classification Odds and Ends 1 / 34 Overview Support Vector Machines Connection between Exponential Loss
UofT CSC 411: 09-Classification Odds and Ends 1 / 34
UofT CSC 411: 09-Classification Odds and Ends 2 / 34
UofT CSC 411: 09-Classification Odds and Ends 3 / 34
UofT CSC 411: 09-Classification Odds and Ends 4 / 34
UofT CSC 411: 09-Classification Odds and Ends 5 / 34
UofT CSC 411: 09-Classification Odds and Ends 6 / 34
UofT CSC 411: 09-Classification Odds and Ends 7 / 34
UofT CSC 411: 09-Classification Odds and Ends 8 / 34
UofT CSC 411: 09-Classification Odds and Ends 9 / 34
w w2 is a unit vector pointing in the same direction as w.
UofT CSC 411: 09-Classification Odds and Ends 10 / 34
UofT CSC 411: 09-Classification Odds and Ends 11 / 34
UofT CSC 411: 09-Classification Odds and Ends 12 / 34
w,b C
2
UofT CSC 411: 09-Classification Odds and Ends 13 / 34
UofT CSC 411: 09-Classification Odds and Ends 14 / 34
w,b w2 2
UofT CSC 411: 09-Classification Odds and Ends 15 / 34
UofT CSC 411: 09-Classification Odds and Ends 16 / 34
UofT CSC 411: 09-Classification Odds and Ends 17 / 34
i ξi
UofT CSC 411: 09-Classification Odds and Ends 18 / 34
w,b,ξ
2 + γ N
◮ For γ = 0, we’ll get w = 0. (Why?) ◮ As γ → ∞ we get the hard-margin objective.
i ξi instead of penalizing it.
UofT CSC 411: 09-Classification Odds and Ends 19 / 34
◮ The smallest non-negative ξi that satisfies the constraint is ξi = 0.
◮ The smallest ξi that satisfies the constraint is ξi = 1 − t(i)(w⊤x(i) + b).
N
N
UofT CSC 411: 09-Classification Odds and Ends 20 / 34
w,b,ξ N
2
UofT CSC 411: 09-Classification Odds and Ends 21 / 34
UofT CSC 411: 09-Classification Odds and Ends 22 / 34
◮ One option: gradient descent ◮ Can reformulate with the Lagrange dual
UofT CSC 411: 09-Classification Odds and Ends 23 / 34
UofT CSC 411: 09-Classification Odds and Ends 24 / 34
UofT CSC 411: 09-Classification Odds and Ends 25 / 34
m
UofT CSC 411: 09-Classification Odds and Ends 26 / 34
◮ Compute the m-th hypothesis and its coefficient
h∈H,α N
UofT CSC 411: 09-Classification Odds and Ends 27 / 34
h∈H,α N
N
N
N
i
i
UofT CSC 411: 09-Classification Odds and Ends 28 / 34
h∈H,α N
i
N
i
N
i
N
i
N
i
N
i
CSC 411: 09-Classification Odds and Ends 29 / 34
N
i
N
i
N
i
N
i
N
i
h∈H N
i
h∈H N
i
UofT CSC 411: 09-Classification Odds and Ends 30 / 34
i=1 w (m) i
i=1 w (m) i
i=1 w (m) i
i=1 w (m) i
α min h∈H N
i
α
N
i
N
i
α
i
i
UofT CSC 411: 09-Classification Odds and Ends 31 / 34
i
i
i
i
UofT CSC 411: 09-Classification Odds and Ends 32 / 34
i=1 αihi(x) with
h∈H N
i
i=1 w(m) i
i=1 w(m) i
i
i
UofT CSC 411: 09-Classification Odds and Ends 33 / 34
UofT CSC 411: 09-Classification Odds and Ends 34 / 34