关于SVM分类器的学习与运用

几个重要的博客:

1)基于支持向量机SVM的文本分类的实现: http://blog.csdn.net/qq_30189255/article/details/54571370

2)使用libsvm实现文本分类 : http://shiyanjun.cn/archives/548.html

3)对于svm支持向量机的解释:(关注靠靠靠谱的回答,利于调参):https://www.zhihu.com/question/21094489


SVM方法制作的分类器1 Training Click “Learning “ from Toolbar or Menu, a dialog will appears like following : You can browse and choose the training sample data file(*.trn), or write the data file’s name into the text editor directly. And write down the training result data file(*.mdl). Then click “OK” to begin training .If you want to see training result after computation ,check the “Open model when finish” CheckBox. Testing Click “Classify “ from Toolbar or Menu, a dialog will appears like following: You can browse and choose the testing sample data file (*.tst), or write the data file’s name into the text editor directly. And write down the training result data file(*.mdl),test result file (*.rsl). Then click “OK” to begin training .If you want to see testing result after computation ,check the “Open result when finish” CheckBox. File Format The input file example_file contains the training examples. The first lines may contain comments and are ignored if they start with #. Each of the following lines represents one training example and is of the following format: <class> .=. +1 | -1 | 0 <feature> .=. integer <value> .=. real <line> .=. <class> <feature>:<value> <feature>:<value> ... <feature>:<value> The class label and each of the feature/value pairs are separated by a space character. Feature/value pairs MUST be ordered by increasing feature number. Features with value zero can be skipped. The +1 as class label marks a positive example, -1 a negative example respectively. A class label of 0 indicates that this example should be classified using transduction. The predictions for the examples classified by transduction are written to the file specified through the -l option. The order of the predictions is the same as in the training data. Options There are two types of options. One is for learning, such as kernel types, kernel parameters, etc; the other is for prompt information, such as show optimize information or not. Learning Options: To configure Learning Options, click “Learning Options” from toolbar /menu, a dialog will appear like following: You can set the learning parameters at this dialog. Particularly, you can choose kernel type at the dialog page following: Prompt Options To configure Learning Options, click “Prompt Options” from toolbar /menu, a dialog will appear like following: A little ugly? //sigh. I will improve it in next version. You can select the information you want to see when computing .You can modify this option even when computing. It is lucky that I didn’t write a single code for synchronization (Incredible?) More Details This SVM program is modified from SVM-light
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值