svm_light下载地址http://www.cs.cornell.edu/People/tj/svm_light/
svm-light集成进自己的工程大致有3种方式:
1.工程内部system调用两个exe;
2.封装源码嵌入工程。
3、单独把文件拉出来:svmlight的learn需要的文件:
svmlight的classify需要的文件:
在VS中如何测试learn?
首先在官网下载test.dat和model.dat两个文件,
properties-->configuration properties-->DEBUGGING-->COMMAND ARGUMENTS输入[options] example_file model_file
如: -t 2 test.dat model.dat
其他参数修改类似,可以通过修改options来使训练达到更优
预测:在classify的debugging中输入[options] example_file model_file output_file
【options】test.dat svm_model test.txt
================================================================================================================================
下面对svmlight的主要参数进行介绍
options in train:
Available options are:
General options:
-? - this help(查看帮助,不输入测试数据文件的情况下将输出这个帮助文件)
-v [0..3] - verbosity level (default 1)(主要是调整输入输出参数)
可参考http://www.mathworks.cn/cn/help/stats/classificationsvm.resume.html
我的理解如下:v=0,不显示任何信息, 不收集信息
v=1,输出诊断信息,保存迭代信息