I need to get the posterior probabilities output of trained SVM instead of the binarized output. In the latest versions of Matlab, this can be done by the following steps:
SVMModel = fitcsvm(trainingInput,trainingTarget);
SVMModelPosteriorProb = fitSVMPosterior(SVMModel);
[label, probability] = predict(SVMModelPosteriorProb,testInput);
However, fitcsvm and fitSVMPosterior are both introduced in R2014a version and I am using an earlier one. When I pass the output of the svmtrain function to the predict function, I get an error message stating that struct is not the expected argument type.
Is there a way to do this in earlier Matlab versions?
How can i find posterior probabilities of trained SVM instead of the binarized output? - ResearchGate. Available from: https://www.researchgate.net/post/How_can_i_find_posterior_probabilities_of_trained_SVM_instead_of_the_binarized_output [accessed May 13, 2016].