# Confidence value for svm model

I am using SVM algorithm to recognize Facial Expression using opencv library. I want to get prediction confidence of my test image but the syntax of predict is something like **float response = svm->predict(TestDataMat)**. How can get the confidence value??
Thanks in advance!