当前位置:网站首页>Machine learning -- - theory of support vector machine (SVM)
Machine learning -- - theory of support vector machine (SVM)
2022-08-02 06:32:00 【The romance of cherry blossoms】
Support Vector Machine
要解决的问题:什么样的决策边界才是最好的呢?
决策边界:The decision boundary that is the furthest from the two classes is selected

Calculation of the distance from a point to a plane


数据标签定义


优化的目标


目标函数
放缩变换:对于决策方程(w,b)可以通过放缩使得其结果值|Y|>= 1
(之前我们认为恒大于0,现在严格了些)


Because the following minimum value is 1
常规套路:将求解极大值问题转换成极小值问题:![]()
如何求解:应用拉格朗日乘子法求解
拉格朗日乘子法
带约束的优化问题:
原式转换: 
我们的式子: 
(约束条件不要忘: 
分别对w和b求偏导,分别得到两个条件(由于对偶性质)

对w求偏导:
对b求偏导:
SVM求解
bring in the original:
其中

完成了第一步求解 ![]()
继续对ɑ求极大值:

条件:
极大值转换成求极小值:
条件:
SVM求解实例
数据:3个点,其中正例 X1(3,3) ,X2(4,3) ,负例X3(1,1)
求解:
约束条件:

原式:

由于:
化简可得:
分别对ɑ1和ɑ2求偏导,偏导等于0可得:
(并不满足约束条件
,So the solution should be on the boundary)

最小值在(0.25,0,0.25)处取得
将ɑThe result is brought into the solution

平面方程为:
支持向量:真正发挥作用的数据点,ɑ值不为0的点,the boundary point,non-boundaryɑ值必定为0

soft-margin
软间隔:有时候数据中有一些噪音点,If we consider them our line is not very good

新的目标函数:
当C趋近于很大时:意味着分类严格不能有错误
当C趋近于很小时:意味着可以有更大的错误容忍
Cis a hyperparameter that we need to specify
拉格朗日乘子法:
约束: 

低维不可分问题
核变换:既然低维的时候不可分,那我给它映射到高维呢?
低维不可分问题
(𝑋)
实例:
高斯核函数:



边栏推荐
- The company does not pay attention to software testing, and the new Ali P8 has written a test case writing specification for us
- Navicat报错:1045 -拒绝访问用户[email protected](使用passwordYES)
- 复盘:图像饱和度计算公式和图像信噪(PSNR)比计算公式
- Go language study notes - grpc serverclient protobuf Go language from scratch
- 本周大新闻|苹果MR已进行Pre-EVT测试,Quest 2涨价100美元
- Redis数据库
- golang's time package: methods for time interval formatting and output of timestamp formats such as seconds, milliseconds, and nanoseconds
- Introduction to Grid Layout
- 保证家里和企业中的WIFI安全-附AC与AP组网实验
- What are the ways to improve software testing capabilities?After reading this article, it will take you up a notch
猜你喜欢
![[PSQL] window function, GROUPING operator](/img/95/5c9dc06539330db907d22f84544370.png)
[PSQL] window function, GROUPING operator

面试官:设计“抖音”直播功能测试用例吧

关于 VS Code 优化启动性能的实践

金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配

腾讯大咖分享 | 腾讯Alluxio(DOP)在金融场景的落地与优化实践

如何优化OpenSumi终端性能?

在腾讯做外包测试的那些日子.....

JUC(一)- JUC学习概览 - 对JUC有一个整体的认识

Automated operation and maintenance tools - ansible, overview, installation, module introduction

跨桌面端Web容器演进
随机推荐
Detailed explanation of interface in Go language
Redis(十一) - 异步优化秒杀
Difference and analysis of CPU usage and load
对node工程进行压力测试与性能分析
双重for循环案例(用js打印九九乘法表)
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
C language: Check for omissions and fill in vacancies (3)
使用TinkerPop框架对GDB增删改查
Integrate ssm (1)
分布式文件存储服务器之Minio对象存储技术参考指南
机器学习——支持向量机原理
Timing task library in the language use Cron, rounding
C语言入门实战(13):十进制数转二进制
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
Redis-集群模式(主从复制模式,哨兵模式,集群化模式)
Alluxio为Presto赋能跨云的自助服务能力
说好的女程序员做测试有优势?面试十几家,被面试官虐哭~~
51单片机外设篇:红外通信
如何优化OpenSumi终端性能?
51 microcontroller peripherals article: dot-matrix LCD