简体   繁体   English

如何使用Libsvm计算“准确性”-SVM_Predict.exe

[英]How is “accuracy” calculated using Libsvm - SVM_Predict.exe

I am using the LIBSVM for the first time. 我是第一次使用LIBSVM。 I was able to train a data(for images) and my model is ready "trainingdata.svm.model" 我能够训练一个数据(用于图像),并且我的模型已经准备好“ trainingdata.svm.model”

Now, when I run my classification against an unknown test data it is giving me two files: 1. trainingdata.svm.prediction (This file contains 1's and 0's) against my each of test data. 现在,当我对未知的测试数据运行分类时,它给了我两个文件:1.对我的每个测试数据进行trainingdata.svm.prediction(此文件包含1和0)。 2. It is giving me Accuracy = 8 % 2.它给了我精度= 8%

THE QUESTION: 1. How do I interpret the 1s and 0s in my "trainingdata.svm.prediction". 问题: 1.如何解释“ trainingdata.svm.prediction”中的1和0。 Note: I am classifying genders where 1 could be male and 0 could be female. 注意:我正在对性别进行分类,其中1可能是男性,0可能是女性。

  1. How is Accuracy calculated? 精度如何计算? How can a program calculate accuracy since the test data is an unknown entity and we do not know the labels yet. 由于测试数据是未知实体,并且我们还不知道标签,因此程序如何计算准确性。

Thanks 谢谢

  1. The file "trainingdata.svm.prediction" is predicting the labels 1 and 0 for your set (1 means the sample was predicted to be male, 0 is female). 文件“ trainingdata.svm.prediction”正在为您的集合预测标签1和0(1表示样本被预测为男性,0表示女性)。

  2. It assumes all the labels belong to class index 0, I believe. 我相信,它假定所有标签都属于类索引0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM