cs480 680 lecture 14 june 24 2019
play

CS480/680 Lecture 14: June 24, 2019 Support Vector Machines - PowerPoint PPT Presentation

CS480/680 Lecture 14: June 24, 2019 Support Vector Machines (continued) [B] Sec. 7.1 [D] Sec. 11.5-11.6 [HTF] Chap. 12 [M] Sec. 14.5 [RN] 18.9 [MRT] Chap. 4 University of Waterloo CS480/680 Spring 2019 Pascal Poupart 1 Overlapping Class


  1. CS480/680 Lecture 14: June 24, 2019 Support Vector Machines (continued) [B] Sec. 7.1 [D] Sec. 11.5-11.6 [HTF] Chap. 12 [M] Sec. 14.5 [RN] 18.9 [MRT] Chap. 4 University of Waterloo CS480/680 Spring 2019 Pascal Poupart 1

  2. Overlapping Class Distributions • So far we assumed that data is linearly separable – High dimensions help for linear separability, but may hurt for generalization • But what if the data is noisy (mistakes or outliers) – Constraints should allow misclassifications • Picture University of Waterloo CS480/680 Spring 2019 Pascal Poupart 2

  3. Soft margin • Idea: relax constraints by introducing slack variables ! " ≥ 0 % " & ' ( ) * ≥ 1 − ! " ∀. • Picture: University of Waterloo CS480/680 Spring 2019 Pascal Poupart 3

  4. Soft margin classifier • New optimization problem: , - ) + 1 1 min ' ( $ 2 $,& )*+ 2 ) $ 3 4 5 6 ≥ 1 − - ) s.t. and - ) ≥ 0 ∀; • where ' > 0 controls the trade-off between the slack variable penalty and the margin University of Waterloo CS480/680 Spring 2019 Pascal Poupart 4

  5. Soft margin classifier • Notes: Since ∑ " # " is an upper bound on the # of 1. misclassifications, $ can also be thought as a regularization coefficient that controls the trade-off between error minimization and model complexity 2. When $ → ∞ , then we recover the original hard margin classifier 3. Soft margins handle minor misclassifications, but the classifier is still very sensitive to outliers University of Waterloo CS480/680 Spring 2019 Pascal Poupart 5

  6. Support Vectors • As before support vectors correspond to active constraints ! " # $ % & ' = 1 − + " – i.e., all points that are in the margin or misclassified • Picture: University of Waterloo CS480/680 Spring 2019 Pascal Poupart 6

  7. Multiclass SVMs • Three methods: 1. One-against-all: for ! classes, train ! SVMs to distinguish each class from the rest 2. Pairwise comparison: train "(! $ ) SVMs to compare each pair of classes 3. Continuous ranking: single SVM that returns a continuous value to rank all classes University of Waterloo CS480/680 Spring 2019 Pascal Poupart 7

  8. One-Against-All • For ! classes, train ! SVMs to distinguish each class from the rest • Picture: • Problem: what if different classes are returned by different SVMs? University of Waterloo CS480/680 Spring 2019 Pascal Poupart 8

  9. Pairwise Comparison • Train !(# $ ) SVMs to compare each pair of classes • Picture: • Problem: how do we pick the best class? University of Waterloo CS480/680 Spring 2019 Pascal Poupart 9

  10. Continuous Ranking • Single SVM that returns a continuous value to rank all classes • Picture: • Most popular approach today University of Waterloo CS480/680 Spring 2019 Pascal Poupart 10

  11. Continuous Ranking • Idea: instead of computing the sign of a linear separator, compare the values of linear functions for each class ! • Classification: , -(/ ∗ ) " ∗ = %&'(%) * + * University of Waterloo CS480/680 Spring 2019 Pascal Poupart 11

  12. Multiclass Margin • For each class ! ≠ # define a linear constraint: & ' ( ≥ 1 & ' ( − $ * $ % ∀! ≠ # • This guarantees a margin of at least 1 University of Waterloo CS480/680 Spring 2019 Pascal Poupart 12

  13. Multiclass Classification • Optimization problem: & % & ∑ ( ) ( min $ , - . / − ) ( , - . / ≥ 1 s.t. ) * + ∀4, 6 ≠ 8 / • Equivalent to binary SVM when we have only two classes University of Waterloo CS480/680 Spring 2019 Pascal Poupart 13

  14. Overlapping classes • Add slack variables: - $,& ' ∑ ) * ) + , - ∑ . / . min 3 4 5 ) − / . 3 4 5 ) ≥ 1 − * ) ∀:, ; ≠ = . s.t. 0 1 2 • Equivalent to binary SVM when we have only two classes University of Waterloo CS480/680 Spring 2019 Pascal Poupart 14

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend