SVM (Support vector machines)

Source: Internet
Author: User

Different periods of time you go to see the red mansions will have a different feeling, and the years I see the ML will also have a deeper understanding (*/ω\*)

SVM is a kind of discriminant method supervised learning model is usually used for pattern recognition, classification and regression analysis, mainly to solve two classification problems. Its principle is also from linear can locutionary, then expands to the condition that the linearity is not divided. Even extend to the use of nonlinear functions.

So, let's start with the simplest linear support vector machines.

When I turned ML last year, I still wondered why SVM is called support vector machine. It may be possible to turn the linear regression and linear support vector machines at the same time.

If a linear function can separate the sample, the data sample is said to be linearly separable. So what is a linear function? In fact, it is very simple, in two-dimensional space is a straight line, in three-dimensional space is a plane, and so on, if the space dimension is not considered, such a linear function is collectively referred to as the super-plane. Let's look at an example of a simple two-dimensional space,

The sample is linearly separable, but it is clear that this line is not the only one that separates the sample, but that there are countless bars that we call linear separable support vector machines that correspond to the lines that divide the data correctly and the most spaced.

In linear regression, the least squares method is usually used as the loss function, that is, the square and minimum of the actual value and the observed value are the criteria for selecting the straight line.

Linear support vector machine, the main idea is: to find such a straight line, so that the training samples belong to different categories of sample points located exactly on both sides of the line, in order to ensure the accuracy of the classification, the line on both sides of the blank area to maximize.

Why is the interval the largest? In general, a point distance separation of the ultra-plane can be expressed as the degree of certainty of classification prediction, in a B two sample points, B is predicted to be positive class true reliability is greater than a point, so the goal of SVM is to find a super plane, so that the plane is closer to the heterogeneous point can have greater spacing between, that does not have to consider Just let the resulting superelevation plane make the closest point (the "Support vector") interval maximum (the origin of the SVM name). )。 Therefore, the risk minimization of SVM comes from structure, and LR (linear regression linear regress) is the minimization of experience risk.

Figure 5

So how do you calculate the interval?

Relaxation variables

Another clever thing about SVM is the addition of a relaxation variable to handle the possible noise problems of sample data, as shown in:

SVM allows data points to somewhat deviate from the hyper-plane, which is the outlier value that can be set in the SVM algorithm, corresponding to the length of the medium black implementation. The addition of relaxation variables makes SVM not only the pursuit of local effect optimization, but from the distribution of sample data from the global perspective, the overall consideration, is the so-called into the big things informal.

SVM (Support vector machines)

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.