1 / 33

Support Vector Machines

Support Vector Machines. Jordan Smith MUMT 611 14 February 2008. Topics to cover. What do Support Vector Machines (SVMS) do? How do SVMs work? Linear data Non-linear data (Kernel functions) Unseparable data (added Cost function) Search optimization Why?. What SVMs do. What SVMs do.

marla
Télécharger la présentation

Support Vector Machines

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Support Vector Machines Jordan Smith MUMT 611 14 February 2008

  2. Topics to cover • What do Support Vector Machines (SVMS) do? • How do SVMs work? • Linear data • Non-linear data (Kernel functions) • Unseparable data (added Cost function) • Search optimization • Why?

  3. What SVMs do

  4. What SVMs do

  5. What SVMs do = margin

  6. What SVMs do = margin

  7. What SVMs do = margin = support vector

  8. What SVMs do (optimum separating hyperplane) = margin = support vector

  9. What SVMs do (optimum separating hyperplane) = margin = support vector

  10. What SVMs do Sherrod 230

  11. Topics to cover • What do Support Vector Machines (SVMS) do? • How do SVMs work? • Linear data • Non-linear data (Kernel functions) • Unseparable data (added Cost function) • Search optimization • Why?

  12. The linear, separable case • Training data {xi, yi} • Separating hyperplane defined by normal vector w • hyperplane equation: w·x + b = 0 • distance from plane to origin: |b|/|w| • Distances from hyperplane to nearest point in each collection are d+ and d- Goal: maximize d+ + d- (margins)

  13. Lagrange multipliers The linear, separable case 1) xi·w + b ≥ +1 (for yi = +1) 2) xi·w + b ≤ -1 (for yi = -1) • yi(xi·w + b) - 1 ≥ 0 • for our support vectors, distance from origin to plane = |1-b|/|w|  Algebra d+ + d- = 2 / |w| New goal: maximize: 2 /|w| i.e., minimize: |w|

  14. Nonlinear SVMs Sherrod 235

  15. Nonlinear SVMs Kernel trick: • Map data into a higher-dimensional space using : Rd  H • Training problems involve only the dot product, so H can even be of infinite dimension • Kernel trick makes nonlinear solutions linear again! • youtube example

  16. Nonlinear SVMs • Radial basis function: Sherrod 236

  17. Nonlinear SVMs • Sigmoid Sherrod 237

  18. Another demonstration • applet

  19. The unseparable case • Classifiers need to have a balanced capacity: • Bad botanist: “It has 847 leaves. Not a tree!” • Bad botanist: “It’s green. That’s a tree!”

  20. The unseparable case Sherrod 237

  21. The unseparable case

  22. The unseparable case   = error = fuzzy margin

  23. Quadratic Programming The unseparable case Add a cost function: • xi·w + b ≥ +1 - i (for yi = +1) • xi·w + b ≤ -1 + i (for yi = -1) • i ≥ 0 old goal: minimize |w|2/2 new goal: minimize |w|2/2 + C(∑i i)k

  24. Optimizing your search • To find the separating hyperplane, you must manipulate many parameters, depending on which kernel function you select: • C, the cost constant • Gamma, i, etc. • There are two basic methods: • Grid search • Pattern search

  25. Topics to cover • What do Support Vector Machines (SVMS) do? • How do SVMs work? • Linear data • Non-linear data (Kernel functions) • Unseparable data (added Cost function) • Search optimization • Why?

  26. Why use SVMs? Uses: • Optical character recognition • Spam detection • MIR • genre, artist classification (Mandel 2004, 2005) • mood classification (Laurier 2007) • popularity classification, based on lyrics (Dhanaraj 2005)

  27. Why use SVMs? • Machine learner of choice for high-dimensional data, such as text, images, music! • Conceptually simple. • Generalizable and efficient. Next slides: results of a benchmark study (Meyer 2004) comparing SVMs and other learning techniques

  28. Questions?

  29. Key References Burges, C. J. C. "A tutorial on support vector machines for pattern recognition." Data Mining and Knowledge Discovery, 2:955-974, 1998. http://citeseer.ist.psu.edu/burges98tutorial.html Cortes, C. and V. Vapnik. "Support-Vector Networks." Machine Learning, 20:273-297, Sept 1995. http://citeseer.ist.psu.edu/cortes95supportvector.html Sherrod, Phillip H. 2008. DTREG: Predictive Modeling Software. (User’s guide) 227-41. <http://www.dtreg.com/DTREG.pdf” Smola, A. J. and B. Scholkopf. 1998. “A tutorial on support vector regression.” NEUROCOLT Technical report NC-TR-98-030. Royal Holloway college, London.

More Related