SlideServe
Menu
Préférences
© SlideServe · v2026

Linear hyperplanes as classifiers

adolph avatar
38 diapositives · 682 Views · Oct 20, 2014

Linear hyperplanes as classifiers. Usman Roshan. Hyperplane separators. Hyperplane separators. w. Hyperplane separators. w. Hyperplane separators. r. x p. x. w. Hyperplane separators. r. x p. x. w. Nearest mean as hyperplane separator. m 2. m 1.

Linear hyperplanes as classifiers - slide 1
01 / 38Linear hyperplanes as classifiers
1 / 17

Télécharger la présentation

Linear hyperplanes as classifiers
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Linear hyperplanes as classifiers Usman Roshan

  2. Hyperplane separators

  3. Hyperplane separators w

  4. Hyperplane separators w

  5. Hyperplane separators r xp x w

  6. Hyperplane separators r xp x w

  7. Nearest mean as hyperplane separator m2 m1

  8. Nearest mean as hyperplane separator m2 m1 m1 + (m2-m1)/2

  9. Nearest mean as hyperplane separator m2 m1

  10. Separating hyperplanes

  11. Perceptron

  12. Gradient descent

  13. Perceptron training

  14. Perceptron training

  15. Perceptron training by gradient descent

  16. Obtaining probability from hyperplane distances

  17. Multilayer perceptrons • Many perceptrons with hidden layer • Can solve XOR and model non-linear functions • Leads to non-convex optimization problem solved by back propagation

  18. Back propagation • Ilustration of back propagation • http://home.agh.edu.pl/~vlsi/AI/backp_t_en/backprop.html • Many local minima

  19. Training issues for multilayer perceptrons • Convergence rate • Momentum • Adaptive learning • Overtraining • Early stopping

  20. Separating hyperplanes • For two sets of points there are many hyperplane separators • Which one should we choose for classification? • In other words which one is most likely to produce least error? y x

  21. Separating hyperplanes • Best hyperplane is the one that maximizes the minimum distance of all training points to the plane (Learning with kernels, Scholkopf and Smola, 2002) • Its expected error is at most the fraction of misclassified points plus a complexity term (Learning with kernels, Scholkopf and Smola, 2002)

  22. Margin of a plane • We define the margin as the minimum distance to training points (distance to closest point) • The optimally separating plane is the one with the maximum margin y x

  23. Optimally separating hyperplane y w x

  24. Optimally separating hyperplane • How do we find the optimally separating hyperplane? • Recall distance of a point to the plane defined earlier

  25. Hyperplane separators r xp x w

  26. Distance of a point to the separating plane • And so the distance to the plane r is given by or where y is -1 if the point is on the left side of the plane and +1 otherwise.

  27. Support vector machine: optimally separating hyperplane Distance of point x (with label y) to the hyperplane is given by We want this to be at least some value By scaling w we can obtain infinite solutions. Therefore we require that So we minimize ||w|| to maximize the distance which gives us the SVM optimization problem.

  28. Support vector machine: optimally separating hyperplane SVM optimization criterion We can solve this with Lagrange multipliers. That tells us that The xi for which i is non-zero are called support vectors.

  29. Support vector machine: optimally separating hyperplane

  30. Inseparable case • What is there is no separating hyperplane? For example XOR function. • One solution: consider all hyperplanes and select the one with the minimal number of misclassified points • Unfortunately NP-complete (see paper by Ben-David, Eiron, Long on course website) • Even NP-complete to polynomially approximate (Learning with kernels, Scholkopf and Smola, and paper on website)

  31. Inseparable case • But if we measure error as the sum of the distance of misclassified points to the plane then we can solve for a support vector machine in polynomial time • Roughly speaking margin error bound theorem applies (Theorem 7.3, Scholkopf and Smola) • Note that total distance error can be considerably larger than number of misclassified points

  32. Optimally separating hyperplane with errors y w x

  33. Support vector machine: optimally separating hyperplane In practice we allow for error terms in case there is no hyperplane.

  34. SVM software • Plenty of SVM software out there. Two popular packages: • SVM-light • LIBSVM

  35. Kernels • What if no separating hyperplane exists? • Consider the XOR function. • In a higher dimensional space we can find a separating hyperplane • Example with SVM-light

  36. Kernels • The solution to the SVM is obtained by applying KKT rules (a generalization of Lagrange multipliers). The problem to solve becomes

  37. Kernels • The previous problem can be solved in turn again with KKT rules. • The dot product can be replaced by a matrix K(i,j)=xiTxj or a positive definite matrix K.

  38. Kernels • With the kernel approach we can avoid explicit calculation of features in high dimensions • How do we find the best kernel? • Multiple Kernel Learning (MKL) solves it for K as a linear combination of base kernels.