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
    $\begingroup$ You are missing a ' at the end of the options string in your training command. $\endgroup$ – Marc Claesen Jun 17 '14 at 21:02
-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$
  • $\begingroup$ -1 C-SVC can give approximated probability outputs via Platt scaling. $\endgroup$ – Marc Claesen Jun 17 '14 at 21:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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