如何在libsvm svm-predict中获得实际概率值 [英] How to get actual probability values in libsvm svm-predict

查看:83
本文介绍了如何在libsvm svm-predict中获得实际概率值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用libsvm,当我使用svm-predict预测我的训练数据集时,测试模型输出为1或-1。

EX:

i使用以下cmd命令



svm-predict Test.scale A.scale.model ATestData.txt


输出文件ATestData.txt中的
它有-1或1



但是我希望得到匹配概率作为浮点值。 。谢谢提前



ex:0.5898(浮动值)

Hi, iam using libsvm and when i use svm-predict to predict my trained dataset with testing model it gives the output as 1 or -1.
EX :
i use following cmd command

svm-predict Test.scale A.scale.model ATestData.txt

in the output file ATestData.txt it has -1 or 1

but i want to get the matching probability as a float value..Thanks in advance

ex : 0.5898 (a float value)

推荐答案

我找到了解决方案....在svm-train中必须使用-b 1参数来获得svm预测中的概率估计..
i have found the solution.... in svm-train have to use -b 1 parameter to get probability estimates in svm-prediction..


这篇关于如何在libsvm svm-predict中获得实际概率值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆