简体   繁体   English

支持向量回归如何工作?

[英]How Support Vector Regression works?

I'm trying to understand SVR model.我正在尝试了解SVR模型。
To do it I looked at SVM and it's pretty clear for me.为此,我查看了 SVM,这对我来说很清楚。 But there is no much explications about SVR.但是关于SVR并没有太多的解释。 The first question is why it's called Support Vector Regression or how we use vectors to predict numerical values?第一个问题是为什么它被称为支持向量回归或者我们如何使用vectors来预测数值?
Also I don't understand some parameters such as epsilon and gamma .另外我不明白一些参数,例如epsilongamma How they influence predicted result?它们如何影响预测结果?

A SVM learns a so called decision function from your features, such that features from you positive class produce positive real numbers, and features from the negative class produce negative numbers (at least most of the time, depending on your data). SVM 从您的特征中学习所谓的决策函数,例如来自正类的特征产生正实数,来自负类的特征产生负数(至少大部分时间,取决于您的数据)。

For two features you can visualize this in a 2D plane.对于两个特征,您可以在 2D 平面中对其进行可视化。 The function assigns a real value to each point in the plane, this value can be depicted as color.该函数为平面中的每个点分配一个实际值,该值可以用颜色表示。 This plot shows the values as different blue colors. 此图将值显示为不同的蓝色。

The feature values resulting in zero form the so called decision boundary .导致零的特征值形成所谓的决策边界

This function itself has two kind of parameters:这个函数本身有两种参数:

  • kernel dependend parameters.内核相关参数。 In your case for the radial basis functions, these parameters are epsilon and gamma , which you set before learning.在您的径向基函数的情况下,这些参数是epsilongamma ,您在学习之前设置。
  • And the so called support-vectors which are determined during learning.以及在学习过程中确定的所谓支持向量。 support-vectors are just parameters of your decision function .支持向量只是决策函数的参数

Learning is nothing than determining good support-vectors (parameters !).学习只不过是确定好的支持向量(参数!)。

In this 2d example video the colors don't show the actual function value, but only the sign.在这个二维示例视频中,颜色不显示实际的函数值,而只显示符号。 You can see how gamma influences the smoothness of the decision function.您可以看到gamma如何影响决策函数的平滑度。

To answer you question:回答你的问题:

SVR builds such a function but with a different goal. SVR 构建了这样一个函数,但目标不同。 The function does not try to assign positive outcomes to your postive examples, and negative outcomes to the negative examples.该函数不会尝试将正面结果分配给您的正面示例,将负面结果分配给负面示例。

Instead the function is built to approximate the given numeric outcomes.相反,该函数旨在逼近给定的数字结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM