DOC PREVIEW
CMU CS 10601 - Recitation

This preview shows page 1-2-3-4-5-6-39-40-41-42-43-79-80-81-82-83-84 out of 84 pages.

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

Unformatted text preview:

10-601 Recitation William BishopAgenda•Support Vector Machines •BoostingSupport Vector MachinesMaximizing'the'margin'6%margin%=%γ =%a/ǁwǁ"w.x%+%b%=%0%w.x%+%b%>%0%w.x%+%b%<%0%w.x%+%b%=%a%w.x%+%b%=%1a%γ"γ"Distance%of%closest%examples%%from%the%line/hyperplane%Slide from lecture.Would like to express the margin aas a function of w and a.Support Vector MachinesMaximizing'the'margin'6%margin%=%γ =%a/ǁwǁ"w.x%+%b%=%0%w.x%+%b%>%0%w.x%+%b%<%0%w.x%+%b%=%a%w.x%+%b%=%1a%γ"γ"Distance%of%closest%examples%%from%the%line/hyperplane%x’x(x0 x)T✓w||w||◆= (x0Tw  xTw)✓1||w||◆= (x0Tw  xTw  b + b)✓1||w||◆= ([x0Tw + b]  [(xTw + b])✓1||w||◆= ([a]  [0])✓1||w||◆= a||w||= Support Vector MachinesMaximizing'the'margin'6%margin%=%γ =%a/ǁwǁ"w.x%+%b%=%0%w.x%+%b%>%0%w.x%+%b%<%0%w.x%+%b%=%a%w.x%+%b%=%1a%γ"γ"Distance%of%closest%examples%%from%the%line/hyperplane%x’x(x0 x)T✓w||w||◆= (x0Tw  xTw)✓1||w||◆= (x0Tw  xTw  b + b)✓1||w||◆= ([x0Tw + b]  [(xTw + b])✓1||w||◆= ([a]  [0])✓1||w||◆= a||w||= Support Vector MachinesMaximizing'the'margin'6%margin%=%γ =%a/ǁwǁ"w.x%+%b%=%0%w.x%+%b%>%0%w.x%+%b%<%0%w.x%+%b%=%a%w.x%+%b%=%1a%γ"γ"Distance%of%closest%examples%%from%the%line/hyperplane%x’x(x0 x)T✓w||w||◆= (x0Tw  xTw)✓1||w||◆= (x0Tw  xTw  b + b)✓1||w||◆= ([x0Tw + b]  [(xTw + b])✓1||w||◆= ([a]  [0])✓1||w||◆= a||w||= Support Vector MachinesMaximizing'the'margin'6%margin%=%γ =%a/ǁwǁ"w.x%+%b%=%0%w.x%+%b%>%0%w.x%+%b%<%0%w.x%+%b%=%a%w.x%+%b%=%1a%γ"γ"Distance%of%closest%examples%%from%the%line/hyperplane%x’x(x0 x)T✓w||w||◆= (x0Tw  xTw)✓1||w||◆= (x0Tw  xTw  b + b)✓1||w||◆= ([x0Tw + b]  [(xTw + b])✓1||w||◆= ([a]  [0])✓1||w||◆= a||w||= Support Vector MachinesMaximizing'the'margin'6%margin%=%γ =%a/ǁwǁ"w.x%+%b%=%0%w.x%+%b%>%0%w.x%+%b%<%0%w.x%+%b%=%a%w.x%+%b%=%1a%γ"γ"Distance%of%closest%examples%%from%the%line/hyperplane%x’x(x0 x)T✓w||w||◆= (x0Tw  xTw)✓1||w||◆= (x0Tw  xTw  b + b)✓1||w||◆= ([x0Tw + b]  [(xTw + b])✓1||w||◆= ([a]  [0])✓1||w||◆= a||w||= Support Vector MachinesMaximizing'the'margin'6%margin%=%γ =%a/ǁwǁ"w.x%+%b%=%0%w.x%+%b%>%0%w.x%+%b%<%0%w.x%+%b%=%a%w.x%+%b%=%1a%γ"γ"Distance%of%closest%examples%%from%the%line/hyperplane%x’x(x0 x)T✓w||w||◆= (x0Tw  xTw)✓1||w||◆= (x0Tw  xTw  b + b)✓1||w||◆= ([x0Tw + b]  [(xTw + b])✓1||w||◆= ([a]  [0])✓1||w||◆= a||w||= Support Vector MachinesMaximizing'the'margin'7%w.x%+%b%=%0%w.x%+%b%>%0%w.x%+%b%<%0%w.x%+%b%=%a%w.x%+%b%=%1a%γ"γ"%%%max%%γ =%a/ǁwǁ"%w,b%%s.t.%(w.xj+b)%yj%≥%a ∀j%%margin%=%γ =%a/ǁwǁ"Note:%%‘a’%is%arbitrary%(can%normalize%%%%%%%%%%%%%%equa$ons%by%a)%Distance%of%closest%examples%%from%the%line/hyperplane%Slide from lecture.Support Vector MachinesSupport'Vector'Machines'8%w.x%+%b%>%0%w.x%+%b%<%0%γ"γ"%%%min%%w.w"%w,b%%s.t.%(w.xj+b)%yj%≥%1 ∀j%%%%%%%Solve%efficiently%by%quadra$c%programming%(QP)%– Well1studied%solu$on%algorithms%%w.x%+%b%=%0%w.x%+%b%=%1%w.x%+%b%=%11%%%%max%%γ =%1/ǁwǁ"%w,b%%s.t.%(w.xj+b)%yj%≥%1 ∀j%%Slide from lecture.Support Vector MachinesSlide from lecture.12%%%%min%%w.w%+%C%Σ%ξj%"%w,b,ξ%%s.t.%(w.xj+b)%yj%≥%11ξj% ∀j%%% %ξj%≥%0 ∀j%j%Allow%“error”%in%classifica$on%ξj%%%%1%“slack”%variables%%%%%%%%%%%%%=%(>1%if%xj%misclassifed)%%pay%linear%penalty%if%mistake%C%%1%%tradeoff%parameter%(chosen%by%%%%%%%%%%cross1valida$on)%S$ll%QP%"%Soft margin approach What'if'data'is'not'linearly'separable?'Support Vector MachinesThe Primal Problem for the Linearly Separable Case:minw,bwTws.t. (wTxj+ b)yj 1 8jL(w,b,↵j)=wTw Xj↵jwTxj+ b)yj 1Support Vector MachinesThe Primal Problem for the Linearly Separable Case:minw,bwTws.t. (wTxj+ b)yj 1 8jL(w,b,↵j)=wTw Xj↵jwTxj+ b)yj 1Support Vector MachinesThe Primal Problem for the Linearly Separable Case:minw,bwTws.t. (wTxj+ b)yj 1 8jL(w,b,↵j)=wTw Xj↵jwTxj+ b)yj 1Support Vector MachinesL(w,b,↵j)=wTw Xj↵jwTxj+ b)yj 1The Primal Problem:The Dual Problem:minw,bmax↵j[L(w,b,↵j)]s.t.↵j 0 8jmax↵jminw,b[L(w,b,↵j)]s.t.↵j 0 8jSupport Vector MachinesSolving the dual:max↵jminw,b[L(w,b,↵j)]s.t.↵j 0 8j@L@w= w Xj↵jxjyjw =Xj↵jxjyjL(w,b,↵j)=12wTw Xj↵jwTxj+ b)yj 1@L@b=Xj↵jyj0=Xj↵jyjSupport Vector MachinesSolving the dual:max↵jminw,b[L(w,b,↵j)]s.t.↵j 0 8j@L@w= w Xj↵jxjyjw =Xj↵jxjyjL(w,b,↵j)=12wTw Xj↵jwTxj+ b)yj 1@L@b=Xj↵jyj0=Xj↵jyjSupport Vector MachinesSolving the dual:max↵jminw,b[L(w,b,↵j)]s.t.↵j 0 8j@L@w= w Xj↵jxjyjw =Xj↵jxjyjL(w,b,↵j)=12wTw Xj↵jwTxj+ b)yj 1@L@b=Xj↵jyj0=Xj↵jyj12wTw Xj↵jwTxj+ b)yj 1=12wTw Xj↵jwTxjyj bXj↵jyj+Xj↵j=120@Xj↵jxjyj1AT Xi↵ixiyi!Xj↵j Xi↵ixiyi!Txjyj+Xj↵j=Xj↵j12XiXj↵i↵jyiyjxTixjSupport Vector MachinesSolving the dual:max↵jminw,b[L(w,b,↵j)]s.t.↵j 0 8j12wTw Xj↵jwTxj+ b)yj 1=12wTw Xj↵jwTxjyj bXj↵jyj+Xj↵j=120@Xj↵jxjyj1AT Xi↵ixiyi!Xj↵j Xi↵ixiyi!Txjyj+Xj↵j=Xj↵j12XiXj↵i↵jyiyjxTixjSupport Vector MachinesSolving the dual:max↵jminw,b[L(w,b,↵j)]s.t.↵j 0 8j12wTw Xj↵jwTxj+ b)yj 1=12wTw Xj↵jwTxjyj bXj↵jyj+Xj↵j=120@Xj↵jxjyj1AT Xi↵ixiyi!Xj↵j Xi↵ixiyi!Txjyj+Xj↵j=Xj↵j12XiXj↵i↵jyiyjxTixjSupport Vector MachinesSolving the dual:max↵jminw,b[L(w,b,↵j)]s.t.↵j 0 8jSupport Vector MachinesSolving the dual:max↵jminw,b[L(w,b,↵j)]s.t.↵j 0 8j12wTw Xj↵jwTxj+ b)yj 1=12wTw Xj↵jwTxjyj bXj↵jyj+Xj↵j=120@Xj↵jxjyj1AT Xi↵ixiyi!Xj↵j Xi↵ixiyi!Txjyj+Xj↵j=Xj↵j12XiXj↵i↵jyiyjxTixjSupport Vector MachinesSolving the dual:Xj↵j12XiXj↵i↵jyiyjxTixjMaximize this with respect to ↵j.w =Xj↵jxjyjThen:b = yj wTxjfor any j where ↵j> 0Support Vector MachinesSo why work with the dual?Just a dot product!max↵j0@Xj↵j12XiXj↵i↵jyiyjxTixj1As.t.↵j 0Xj↵jyj=0Support Vector Machines40%What'if'data'is'not'linearly'separable?'x%Using%non1linear%features%to%get%linear%separa$on%y%x%x2%From class slides.Support Vector


View Full Document

CMU CS 10601 - Recitation

Documents in this Course
lecture

lecture

40 pages

Problem

Problem

12 pages

lecture

lecture

36 pages

Lecture

Lecture

31 pages

Review

Review

32 pages

Lecture

Lecture

11 pages

Lecture

Lecture

18 pages

Notes

Notes

10 pages

Boosting

Boosting

21 pages

review

review

21 pages

review

review

28 pages

Lecture

Lecture

31 pages

lecture

lecture

52 pages

Review

Review

26 pages

review

review

29 pages

Lecture

Lecture

37 pages

Lecture

Lecture

35 pages

Boosting

Boosting

17 pages

Review

Review

35 pages

lecture

lecture

32 pages

Lecture

Lecture

28 pages

Lecture

Lecture

30 pages

lecture

lecture

29 pages

leecture

leecture

41 pages

lecture

lecture

34 pages

review

review

38 pages

review

review

31 pages

Lecture

Lecture

41 pages

Lecture

Lecture

15 pages

Lecture

Lecture

21 pages

Lecture

Lecture

38 pages

Notes

Notes

37 pages

lecture

lecture

29 pages

Load more
Download Recitation
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 Recitation 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 Recitation 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?