Top 10 typical data mining algorithms (3) Support Vector Machines

Source: Internet
Author: User

Support Vector Machine (SVM ). It is a supervised learning method, which is widely used in statistical classification and regression analysis.

SVM is a generalized linear classifier. they can also think of it as a special case of the Tikhonov regularization method. this classifier is characterized by its ability to minimize empirical errors and maximize geometric edges at the same time. therefore, SVM is also called the largest Edge Area classifier. In statistical calculation, the maximum expectation (EM) algorithm is an algorithm used to find the maximum likelihood of parameters in the probability (Probabilistic) model, the probability model depends on hidden variables that cannot be observed (latent Variabl ). It is expected that Data Clustering is often used in machine learning and computer vision. The maximum Expectation Algorithm is calculated in two steps. The first step is to calculate the expectation (e), that is, to include hidden variables as observed, so as to calculate the maximum likelihood expectation; the other step is to maximize (M), that is, to maximize the expectation of the maximum likelihood found in Step E, so as to calculate the maximum likelihood estimation of the parameter. The parameters found in step m are then used for another step e calculation. This process continues to alternate.

 

Based on years of statistical learning theory, Vapnik and others proposed another optimal design criterion for linear classifier. The principle is also from linear division, and then extended to linear division. Or even extend
This classifier is called Support Vector Machine (SVM ). The introduction of SVM has a deep theoretical background.
Support Vector Machine (SVM) is a new method proposed in recent years.
The main idea of SVM can be summarized into two points: (1)
It is used to analyze the linear severability. When the linear division is not possible, the nonlinear ing algorithm is used to convert the samples with linear division in the low-dimensional input space to the high-dimension feature space for linear division, thus
This makes it possible to use linear algorithms in the high-dimensional feature space to perform linear analysis on the nonlinear features of samples. (2)
Based on the Structure Risk Minimization theory, it constructs an optimal segmentation hyperplane in the feature space, so that the learner gets global optimization and the expected risk in the entire sample space satisfies a certain upper limit with a certain probability.
When learning this method, we should first find out the characteristics of this method to consider the problem, which should be discussed from the simplest case of linear differentiation.
Do not rush to learn situations where linearity cannot be classified or complex before understanding its principles. In the design of SVM, it is necessary to solve the conditional extreme value problem, therefore, it is necessary to use the Laplace theory,
For several people, the previously learned or commonly used method is that the constraints are represented by equations, but here we need to use inequality as the conditions that must be met, at this time, we only need to understand the relevant conclusions of the theory.

 

Introduction

SVM maps a vector to a higher-dimensional space, in which a maximum interval hyperplane is created. Two parallel superplanes are built on both sides of the data plane. Separated ultra-flat
The plane maximizes the distance between two parallel superplanes. It is assumed that the larger the distance or gap between parallel superplanes, the smaller the total error of the classifier. An excellent guide is C. j.c.
Burges's Pattern Recognition Support Vector Machine Guide. Van der Walt and Barnard compare SVM with other classifiers.

Motivation

There are many classifiers (superplanes) that can separate data, but only one can achieve the maximum segmentation.

We usually want the classification process to be a machine learning process. These data points do not need to be in the middle, but can be any (Statistical symbols) or (Computer Science symbols) points. We hope to separate these points through a n-1-dimensional hyperplane, which is usually called a linear classifier. Many classifiers meet this requirement, but we also want to find the best classification plane, even if it belongs to the surface with the largest data point interval between two different classes, it is also calledMaximum interval hyperplane. If we can find this surface, this classifier is called the maximum interval classifier.

Problem definition

The sample belongs to two classes, and the maximum interval hyperplane obtained by using the sample training SVM is obtained. The sample points on the superplane are also called support vectors.

We consider the following sample points

WhereCIIs 1 or −1 -- used to indicate which class the data point belongs. It isP− (Statistical symbols), orN− (Computer Science symbol) dimension vector, with each element scaled to [] or [-]. the purpose of scaling is to prevent random variables with large variance from leading the classification process. we can call this data "training data" and hope that our SVM can correctly separate them through a hyperplane. Over-level mathematical form can be written

Based on geometric knowledge, we know that the vector is perpendicular to the classification hyperplane. Add displacementBThe purpose is to increase the interval. If there is noBThen, the hyperplane will have to pass the origin to limit the flexibility of this method.

Because we require the maximum interval, we need to know the support vector and the hyperplane (parallel to the optimal hyperplane) closest to the Support Vector. We can see that these parallel superplanes can be composed of the equations:

.

If the training data is linearly segmented, we can find the two superplanes with no sample points between them and the distance between them is also the largest. it is not difficult to obtain the distance between the two superplanes through ry: 2/|W|, So we need to minimize |W|. At the same time, to make the sample data points out of the ultra-plane interval, we need to ensure that allIOne of the conditions is met.

These two formulas can be written:

Prototype

Now the problem of finding the optimal hyperplane becomes to minimize the number of elements under (1) constraints. |W|. This is a problem in Quadratic Programming QP (Quadratic Programming) optimization.

More clearly, it can be expressed as follows:

Minimized.

1/2 this factor is added for the convenience of mathematical expression.

Dual form)

Writing the classification rules of the prototype into the dual type shows that the classifier is actually a function about the support vector (that is, the training sample points at the edge of the interval.

The dual type of SVM is as follows:I> = 0

Soft Interval

1995, corinna Cortes
And Vapnik
An Improved maximum interval method is proposed, which can process labeled error samples. If the hyperplane of the positive and negative examples does not exist, the "soft border" selects a hyperplane to be as clear as possible.
At the same time, the distance between the image and the sample with the clearest boundary is maximized. This achievement promotes the term "Support Vector Machine" (or "SVM. This method introduces the songchi parameter.ITo measure dataXI.

.

Then, compare the target function withIThe penalty function is added, and the two objectives of increasing the spacing and narrowing down the error penalty are weighed and optimized. If the penalty function is a linear function, equation (3) is transformed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.