当前位置:网站首页>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
拉格朗日乘子法:
约束: 

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



边栏推荐
- 驱动页面性能优化的3个有效策略
- 在腾讯做外包测试的那些日子.....
- 家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份
- 25K test old bird's 6-year experience in interviews, four types of companies, four types of questions...
- What are the ways to improve software testing capabilities?After reading this article, it will take you up a notch
- classSR论文阅读笔记
- 保证家里和企业中的WIFI安全-附AC与AP组网实验
- Redis-集群模式(主从复制模式,哨兵模式,集群化模式)
- Contents of encoding-indexes.js file printed with Bluetooth:
- [PSQL] window function, GROUPING operator
猜你喜欢

MySql copies data from one table to another table

About the directory structure of the web application

【漫画】2021满分程序员行为对照表(最新版)

驱动页面性能优化的3个有效策略
![[PSQL] window function, GROUPING operator](/img/95/5c9dc06539330db907d22f84544370.png)
[PSQL] window function, GROUPING operator

BGP实验(路由反射器,联邦,路由优化)

Redis-集群模式(主从复制模式,哨兵模式,集群化模式)

【合集- 行业解决方案】如何搭建高性能的数据加速与数据编排平台

Redis(十二) - Redis消息队列

上海交大牵手淘宝成立媒体计算实验室:推动视频超分等关键技术发展
随机推荐
机器学习——支持向量机原理
golang generics
Linux CentOS8安装Redis6
C language entry combat (13): decimal number to binary
5年在职经验之谈:2年功能测试、3年自动化测试,从入门到不可自拔...
nacos registry
Constructors, member variables, local variables
为什么4个字节的float要比8个字节的long大呢?
目标检测重要概念——IOU、感受野、空洞卷积、mAP
【解决】RESP.app 连接不上redis
C语言中i++和++i在循环中的差异性
eggjs controller层调用controller层解决方案
驱动页面性能优化的3个有效策略
25K测试老鸟6年经验的面试心得,四种公司、四种问题…
el-input can only input integers (including positive numbers, negative numbers, 0) or only integers (including positive numbers, negative numbers, 0) and decimals
制作web3d动态产品展示的优点
家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份
Meta公司内部项目-RaptorX:将Presto性能提升10倍
Redis数据库
Use the browser's local storage to realize the function of remembering the user name