How to compute the probability of a multi-class prediction using libsvm?

Posted by Cuga on Stack Overflow See other posts from Stack Overflow or by Cuga
Published on 2010-05-03T22:17:57Z Indexed on 2010/05/04 1:28 UTC
Read the original article Hit count: 345

Filed under:
|
|
|

I'm using libsvm and the documentation leads me to believe that there's a way to output the believed probability of an output classification's accuracy. Is this so? And if so, can anyone provide a clear example of how to do it in code?

Currently, I'm using the Java libraries in the following manner

    SvmModel model = Svm.svm_train(problem, parameters);
    SvmNode x[] = getAnArrayOfSvmNodesForProblem();
    double predictedValue = Svm.svm_predict(model, x);

© Stack Overflow or respective owner

Related posts about libsvm

Related posts about svm