How to calculate precision, recall and F-score with libSVM in python
问题 I want to calculate the precision , recall and f-score using libsvm in Python but I do not know how. I have found this site but I have not understand how to call the function, if you can help me through example. 回答1: You can take advantage of scikit-learn, which is one of the best packages for machine learning in Python. Its SVM implementation uses libsvm and you can work out precision, recall and f-score as shown in the following snippet: from sklearn import svm from sklearn import metrics