Libsvm-26使用介绍.ppt

上传人:创****公 文档编号:1607302 上传时间:2019-10-19 格式:PPT 页数:13 大小:71KB
返回 下载 相关 举报
Libsvm-26使用介绍.ppt_第1页
第1页 / 共13页
Libsvm-26使用介绍.ppt_第2页
第2页 / 共13页
点击查看更多>>
资源描述

《Libsvm-26使用介绍.ppt》由会员分享,可在线阅读,更多相关《Libsvm-26使用介绍.ppt(13页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、Libsvm-2.6使用介绍,,Libsvm-2.6特点,Support multi-class classificationDifferent SVM formulationCross-validation for model selectionProbability estimateWeighted SVM for unbalanced dataBoth C+ and Java sourcesVersion 2.8 released on April fools day,2005,Libsvm-2.6程序结构,Kernel 类Solver类:Generalized SMO和SVMLight

2、 algorithm 解二次规划问题采用one-against-one 解决多类分类,Format of training and testing data file, : : .+1 1:0.708333 2:1 3:1 4:-0.320755 5:-0.105023 6:-1 7:1 -1 1:0.583333 2:-1 3:0.333333 4:-0.603774 5:1 6:-1 7:1 +1 1:0.166667 2:1 3:-1 4:-0.433962 5:-0.383562 6:-1 7:-1-1 1:0.458333 2:1 3:1 4:-0.358491 5:-0.37442

3、9 6:-1 7:-1,Data scaling,Avoid attributes in greater numeric ranges dominate those in smaller number ranges.Usually scale each attribute to 0,1 or-1,+1.svmscale l -1 u 1 s range train.1train.1.scalesvmscale r range test.1test.1.scale,Svmtrain,One-class:Here a hyperplane is placed such that it separa

4、tes the dataset from the origin with maximal margin. The regularization parameter nu(0,1), is a user defined parameter indicating the fraction of the data that should be accepted by the description. nu-SVR: nu回归机。引入能够自动计算epsilon的参数nu。若记错误样本的个数为q ,则nu大于等于q/l,即nu是错误样本的个数所占总样本数的份额的上界;若记支持向量的个数为p,则nu小于等

5、于p/l,即nu是支持向量的个数所占总样本数的份额的下界。首先选择参数nu和C,然后求解最优化问题。Shrinking: 优化求解过程中是否采用shrinking. 边界支持向量BSVs(aiC的SV)在迭代过程中ai不会变化,如果找到这些点,并把它们固定为C,可以减少QP的规模。Probability estimate: 是否训练SVC和SVR获得概率输出-wi 不平衡样本的加权参数,Output of training C-SVM,optimization finished, #iter = 219 nu = 0.431030 :nu-SVM is a somewhat equivalen

6、t form of C-SVM where C is replaced by nu. obj = -100.877286:optimal objective value of the dual problme. rho = 0.424632 :bias term of the decision function.nSV = 132, nBSV = 107: number of the bounded support vectors Total nSV = 132,Model file,svm_type c_svckernel_type rbfgamma 0.0769231nr_class 2:

7、number of classes. For regression and one-class model, this number is 2.total_sv 132rho 0.424632label 1 -1nr_sv 64 68: number of support vector for each class.SV,Two tools for Model Selection,Easy.py: does everything automatically-from data scaling to parameter selectionGrid.py: uses grid search to

8、find the best model parametersGrid.py的输出文件 -out: 搜索过程。每个参数取值及此时精度-png: 搜索过程等高线图,Proposed procedure,Transform data to the format of Libsvm.Conduct simple scaling on the data.Consider the RBF kernel.Using the cross-validate to find the best model parameters.Using the best parameters to train the whole

9、 training set.Test,Experiments,Original sets with default parametersAccuracy=9.7561%Scaled sets with default parametersAccuracy=87.8049%Scaled sets with parameter selectionAccuracy=95.123%Using an automatic scriptAccuracy=95.122%,Remark,Recommend Python 2.3Recommend Gnuplot version 3.7.3.Vesion 3.7.1 has a bug.,References,A practical guide to support vector machines classificationLIBSVM: a Library for Support Vector MachinesFAQ and Readme in Libsvm-2.6http:/www.csie.ntu.edu.tw/cjlin/,

展开阅读全文
相关资源
相关搜索

当前位置:首页 > pptx模板 > 校园应用

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com