机器学习方法总结(四):支持向量机

支持向量机(SVM)是一种有效的二分类模型,利用间隔最大化策略和核函数进行线性或非线性分类。本文介绍了SVM的基本概念,包括其优缺点、工作原理、核函数的数学表达以及SMO算法,同时探讨了如何根据数据特性选择合适的核函数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

支持向量机

1.简介

    支持向量机(SVM)是一种二分类模型,它的基本形式是定义在特征空间上的间隔最大的线性分类器,这也是它区别于感知机的原因,如果加上核技巧,SVM实际上就变成了一种非线性分类器。它的学习策略是:间隔最大化;求解算法是:凸二次规划的最优化算法。根据数据分布形式分为:线性可分支持向量机、线性支持向量机、非线性向量机。

   核函数:当输入空间X为欧式空间或离散空间,特征空间H为希尔伯特空间时,核函数表示将输入从输入空间映射到特征空间得到的特征向量之间的内积,即存在一个从X到H的映射\phi (x):X\rightarrow H,使得对所有x,z\in X,函数K(x,z)满足条件:

K(x,z)=\phi (x)\cdot \phi (z),则称K(x,z)为核函数,\phi (x)为映射函数。

2.优缺点

  • 优点:泛化错误率低、计算开销小、结果容易解释、分类效果好且可向高维映射、样本少时仍有效。
  • 缺点:对参数调节和核函数的选择敏感、对大规模数据效果不好、对缺失数据敏感。

3.原理及推导

     函数间隔:一般可用被分类点到分割平面的符号是否一致来判断是否分类正确,所以函数间隔表示为:

                                                                        \widehat{\gamma }=y_{i}(w\cdot x_{i}+b)        

    几何间隔:由于函数间隔受参数w和b的影响,当它们成比例增加此时平面没有变但是所得到的函数距离增加了,为了表示真实的间隔,我们定义几何间隔为:\gamma =y_{i}(\frac{w}{||w||})\cdot x_{i}+\frac{b}{||w||})

     模型目标:寻找几何间隔最大的分离超平面:

                                                                       max_{w,b}:\frac{\widehat{\gamma}}{||w||}

                                                      s.t. :\widehat{\gamma }\leq y_{i}(w\cdot x_{i}+b),i=1,2......N

    由于函数间隔不影响最优化问题的解,所以我们设函数间隔为1, 问题变为求||w||,最优化问题转换为:

                                                                     

【摘要】 学习是一切智能系统最根本的特征。机器学习是人工智能最具智能特征、最前沿的研究领域之一。机器学习研究的是如何使机器通过识别和利用现有知识来获取新知识和新技能。机器学习就是要使计算机能模拟人的学习行为,自动地通过学习获取知识和技能,不断改善性能,实现自我完善。 与传统统计学相比,统计学习理论是一种专门研究小样本情况下机器学习规律的理论。V.Vapnik 等人从六、七十年代开始致力于此方面研究,到九十年代中期,其理论不断发展和成熟。统计学习理论是建立在一套较坚实的理论基础之上的,为解决有限样本学习问题提供了一个统一的框架,它能将很多现有方法纳入其中,同时,在这一理论基础上发展了一种新的通用学习方法——支持向量机(Support Vector MachineSVM),它已初步表现出很多优于已有方法的性能。 本文对机器学习支持向量机的研究现状及应用领域进行了综述,阐述了机器学习支持向量机的基本概念、基本模型和支持向量机的训练算法。针对机器学习系统的具体结构,提出了机器学习系统的模块化设计,划分出了输入处理、训练、执行与评价、评价表示 4 个模块,设计了各个模块之间的通信方式,并具体实现了 4 个模块和模块集成系统。 根据基于支持向量机机器学习的研究成果,研制开发出人脸检测系统,主要包括人脸图像处理和编码、基于支持向量机机器学习、执行与评价、评价表示功能,实现了人脸的自动判定。 还原 【Abstract】 Learning is the fundamental feather of all intelligent system.machine-learning is a domain with most intelligent feather and a domain with most foreland.machine-learning research how to obtain new knowledge and new technique by recognition and using existing knowledge.machine-learning let computer simulate man’s learning-action,automatically obtain new knowledge and new technique by learn,improve technique,realize own-perfect. To traditional statistics,Statistical Learning Theory is a theory of researching rule of machine-learning under little sample number.From 1960’s,V.Vapnik etc. begin to research this theory.To middle of 1990’s,this theory increasivly improved and completed.Statistical Learning Theory build on a set of stabile theory,offer a united framework to resolve little sample learning question,it can hold lots of existing method,and it build a new currency learning method--Support Vector Machine,Support Vector Machine method had represent better performance than existing method. This article summarize today state and application domain of machine-learning and Support Vector Machine,expound basic concept and basic model of machine-learning and Support Vector Machine and training arithmetic of Support Vector Machine.Aim at structure of machine-learning system,this article put forward module-design of machine-learning system,partition four module:deal-input,train,evaluate and evaluate representation,and design communicate style of each module,realize this four module and module-integration system. On result of researching machine-learning based Support Vector Machine,Face-Detection system is producted.This system mainly include dealing image of man-face and encode,machine-learning based Support Vector Machine,evaluate and evaluate representation,realize automatically judging man-face. 还原
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值