Computational Intelligence: Methods and Applications Lecture 24 SVM in the non-linear case Włodzisław Duch Dept. of Informatics, UMK Google: W Duch.

Slides:



Advertisements
Similar presentations
Introduction to Support Vector Machines (SVM)
Advertisements

Support Vector Machine
Lecture 9 Support Vector Machines
ECG Signal processing (2)
SVM - Support Vector Machines A new classification method for both linear and nonlinear data It uses a nonlinear mapping to transform the original training.
An Introduction of Support Vector Machine
Classification / Regression Support Vector Machines
An Introduction of Support Vector Machine
1 Lecture 5 Support Vector Machines Large-margin linear classifier Non-separable case The Kernel trick.
Support vector machine
Separating Hyperplanes
Support Vector Machines
Support Vector Machines (SVMs) Chapter 5 (Duda et al.)
Support Vector Classification (Linearly Separable Case, Primal) The hyperplanethat solves the minimization problem: realizes the maximal margin hyperplane.
Classification Problem 2-Category Linearly Separable Case A- A+ Malignant Benign.
Lecture outline Support vector machines. Support Vector Machines Find a linear hyperplane (decision boundary) that will separate the data.
SVM Support Vectors Machines
Support Vector Machines
Lecture 10: Support Vector Machines
Greg GrudicIntro AI1 Support Vector Machine (SVM) Classification Greg Grudic.
Optimization Theory Primal Optimization Problem subject to: Primal Optimal Value:
An Introduction to Support Vector Machines Martin Law.
Ch. Eick: Support Vector Machines: The Main Ideas Reading Material Support Vector Machines: 1.Textbook 2. First 3 columns of Smola/Schönkopf article on.
Machine Learning Week 4 Lecture 1. Hand In Data Is coming online later today. I keep test set with approx test images That will be your real test.
Linear hyperplanes as classifiers Usman Roshan. Hyperplane separators.
SVM by Sequential Minimal Optimization (SMO)
CS 8751 ML & KDDSupport Vector Machines1 Support Vector Machines (SVMs) Learning mechanism based on linear programming Chooses a separating plane based.
1 SUPPORT VECTOR MACHINES İsmail GÜNEŞ. 2 What is SVM? A new generation learning system. A new generation learning system. Based on recent advances in.
10/18/ Support Vector MachinesM.W. Mak Support Vector Machines 1. Introduction to SVMs 2. Linear SVMs 3. Non-linear SVMs References: 1. S.Y. Kung,
CS Statistical Machine learning Lecture 18 Yuan (Alan) Qi Purdue CS Oct
An Introduction to Support Vector Machines (M. Law)
Computational Intelligence: Methods and Applications Lecture 23 Logistic discrimination and support vectors Włodzisław Duch Dept. of Informatics, UMK Google:
Kernels Usman Roshan CS 675 Machine Learning. Feature space representation Consider two classes shown below Data cannot be separated by a hyperplane.
Machine Learning Weak 4 Lecture 2. Hand in Data It is online Only around 6000 images!!! Deadline is one week. Next Thursday lecture will be only one hour.
CISC667, F05, Lec22, Liao1 CISC 667 Intro to Bioinformatics (Fall 2005) Support Vector Machines I.
Kernel Methods: Support Vector Machines Maximum Margin Classifiers and Support Vector Machines.
Linear hyperplanes as classifiers Usman Roshan. Hyperplane separators.
Biointelligence Laboratory, Seoul National University
An Introduction to Support Vector Machine (SVM)
1  The Problem: Consider a two class task with ω 1, ω 2   LINEAR CLASSIFIERS.
1  Problem: Consider a two class task with ω 1, ω 2   LINEAR CLASSIFIERS.
Classification Course web page: vision.cis.udel.edu/~cv May 14, 2003  Lecture 34.
© Eric CMU, Machine Learning Support Vector Machines Eric Xing Lecture 4, August 12, 2010 Reading:
Lecture notes for Stat 231: Pattern Recognition and Machine Learning 1. Stat 231. A.L. Yuille. Fall 2004 Linear Separation and Margins. Non-Separable and.
Linear hyperplanes as classifiers Usman Roshan. Hyperplane separators.
Greg GrudicIntro AI1 Support Vector Machine (SVM) Classification Greg Grudic.
Kernel Methods: Support Vector Machines Maximum Margin Classifiers and Support Vector Machines.
Support Vector Machine: An Introduction. (C) by Yu Hen Hu 2 Linear Hyper-plane Classifier For x in the side of o : w T x + b  0; d = +1; For.
Computational Intelligence: Methods and Applications Lecture 22 Linear discrimination - variants Włodzisław Duch Dept. of Informatics, UMK Google: W Duch.
Support Vector Machines (SVMs) Chapter 5 (Duda et al.) CS479/679 Pattern Recognition Dr. George Bebis.
1 C.A.L. Bailer-Jones. Machine Learning. Support vector machines Machine learning, pattern recognition and statistical data modelling Lecture 9. Support.
Computational Intelligence: Methods and Applications Lecture 14 Bias-variance tradeoff – model selection. Włodzisław Duch Dept. of Informatics, UMK Google:
Support Vector Machines
Support vector machines
PREDICT 422: Practical Machine Learning
LINEAR CLASSIFIERS The Problem: Consider a two class task with ω1, ω2.
Computational Intelligence: Methods and Applications
Geometrical intuition behind the dual problem
Support Vector Machines
An Introduction to Support Vector Machines
Kernels Usman Roshan.
Statistical Learning Dong Liu Dept. EEIS, USTC.
Support vector machines
Support Vector Machines
Lecture 18. SVM (II): Non-separable Cases
Usman Roshan CS 675 Machine Learning
Support vector machines
Support vector machines
Computational Intelligence: Methods and Applications
SVMs for Document Ranking
Presentation transcript:

Computational Intelligence: Methods and Applications Lecture 24 SVM in the non-linear case Włodzisław Duch Dept. of Informatics, UMK Google: W Duch

Non-separable picture Unfortunately for non-separable data vectors not all conditions may be fulfilled, some data points are not outside of the two hyperplanes: new “slack” scalar variables are introduced in separability conditions. Margin between the two distributions of points is defined as the distance between the two hyperplanes parallel to the decision border; it is still valid for most data, but there are now two points on the wrong side of the decision hyperplane, and one point inside the margin.

Non-separable case The problem becomes slightly more difficult, since the quadratic optimization problem is not convex, saddle points appear. Conditions: If  i > 1 then the point is on the wrong side of the g(X)>0 plane, and is misclassified. Dilemma: reduce the number of misclassified points, or keep large classification margin hoping for better generalization on future data, despite some errors made now. This is expressed by minimizing: adding a user-defined parameter C and leading to the same solution as before, with bound on , smaller C = larger margins (see Webb Chap )

SVM: non-separable Coefficients  are obtained from the quadratic programming problem and from support vectors Y (i) g(X (i) )=1. Lagrangian with penalty for errors scaled by C coefficient: Non-separable case conditions, using slack variables: Min W, max . Discriminant function with regularization conditions:

Support Vectors (SV) is large and positive for misclassified vectors, and therefore vectors near the border g(X (i) )  Y (i) should have non zero  i to influence W. This term is negative for correctly classified vectors, far from the H i hyperplanes; selecting  i =0 will maximize the Lagrangian L(W,  ). Some  have to be non zero, otherwise classification conditions Y (i) g(X (i) )  1>0 will not be fulfilled and discriminating function will be reduce to W 0. The term known as the KKT sum (from Karush-Kuhn- Tacker, who used it in optimization theory) : The dual form with  is easier to use, it is maximized with one additional equality constraint:

Mechanical analogy Mechanical analogy: imagine the g(X)=0 hyperplane as a membrane, and SV X (i) exerting force on it, in the Y (i) W direction. Stability conditions require forces to sum to zero leading to: Same as auxiliary SVM condition. Also all torques should sum to 0 Sum=0 if the SVM expression for W is used.

Sequential Minimal Optimization SMO: solve smallest possible optimization step (J. Platt, Microsoft). Idea similar to the Jacobi rotation method with 2x2 rotations, but here applied to the quadratic optimization. Valid solution for min L(  ) is obtained when all conditions are fulfilled:  - accuracy to which conditions should be fulfilled (typically ) SMO: find all examples X (i) that violate these conditions; select those that are neither 0 nor C (non-bound cases). take a pair of  i  j and find analytically the values that minimize their contribution to the L(  ) Lagrangian. Complexity: problem size n 2, solution complexity n sv 2.

Examples of linear SVM SVM SMO, Sequential Multiple Optimization, is implemented in WEKA with linear and polynomial kernels. The only user adjustable parameter for linear version is C; for non- linear version the polynomial degree may also be set. In the GhostMiner 1.5 optimal value of C may automatically be found by crossvalidation training. For non-linear version type of kernel function and parameters of kernels may be adjusted (GM). Many free software packages/papers are at: Example 1: Gaussians data clusters Example 2: Cleveland Heart data

Examples of linear SVM Examples of mixture data with overlapping classes; the Bayesian non- linear decision borders, and linear SVM with margins are shown. With C=10000, small margin with C=0.01, larger margin Errors seem to be reversed here! Large C is better around decision plane, but not worse overall (the model is too simple), so it should have lower training error but higher test; for small C margin is large, training error slightly larger but test lower. Fig. 12.2, from Hasti et. al 2001 data from mixture of Gaussians

Letter recognition Categorization of text samples. Set different rejection rate and calculate Recall = P +|+ = P ++ / P + and Precision= P ++ /(P ++ + P  )=TP/(TP+FP)