0
$\begingroup$

I am doing some classification task with Support Vector Machines (SVM). I am using libSVM (with Matlab support) to predict probability estimates matrix. However, the libSVM displays message that; Model does not support probabiliy estimates Below is my sample code; (train_label contains labels for training data and test_label contains label for test data)

    model = svmtrain(train_label, train_data, '-t 2 -g .01 -c 0.7 -b 1);
    [y,accuracy,prob_estimates]=svmpredict(test_label,test_data,model,'-b 1');

Can someone tell me if there is something wrong with the way I am doing it? Any help/suggestion will be appreciated.

$\endgroup$
1
  • 1
    $\begingroup$ You are missing a ' at the end of the options string in your training command. $\endgroup$ Jun 17, 2014 at 21:02

1 Answer 1

-2
$\begingroup$

Probability can only be used with regression (epsilon-SVR, nu-SVR) svm type Try using regression svm type and it will give probability output

$\endgroup$
1
  • $\begingroup$ -1 C-SVC can give approximated probability outputs via Platt scaling. $\endgroup$ Jun 17, 2014 at 21:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.