Click here to Skip to main content
15,923,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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)
Posted

1 solution

i have found the solution.... in svm-train have to use -b 1 parameter to get probability estimates in svm-prediction..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900