use*_*146 1 opencv machine-learning svm
我正在尝试使用SVM Light来学习OpenCV2.2 HOG描述符的分类器.我从HOG描述符得到一个浮点向量输出.
阅读完SVMLight文档后,我仍然无法理解输入序列和测试数据的格式.
来自网站train.dat的一行示例:
1 6:0.0176472501759912 15:0.0151152682071138 26:0.0572866228831546 27:0.0128461400334668
Run Code Online (Sandbox Code Playgroud)
哪里,
The first char: 1, denote the positive class.
The second and third char 6: <== I don't understand what does this means,
The third variable denote the feature vector.
Run Code Online (Sandbox Code Playgroud)
有人请帮忙吗?谢谢!
第二个和第三个字符6:<==我不明白这意味着什么,第三个变量表示特征向量.
该6:XXXX方法的第6功能的这个例子值XXX
在您提供的示例中:
1 6:0.0176472501759912 15:0.0151152682071138 26:0.0572866228831546 27:0.0128461400334668
这意味着该示例的类标签为1.第6个特征值为0.0176472501759912,第15个特征值为0.0151152682071138等.
可以将其视为每个示例的特征向量的"稀疏编码".隐含地这意味着对于您提供的示例,要素1-5,7-14,16-25的值为0.
| 归档时间: |
|
| 查看次数: |
2031 次 |
| 最近记录: |