0

For a svm classifier, how do I get the probability estimates (probability of a certain sample X, if it s below 0.5 for example it will be classified as 0 and beyond as 1) ? Python has function that give me the distance of sample X to the decision boundary (hyperplane). How can I convert this distance (has positiv an negativ values) to get the probabilities in a range (0,1) ? I have to plot a precision_recall function without using the scikit_learn function plot_ precison_recall

0 Answers0