machine learning - How to find the Precision, Recall, Accuracy using SVM? -
duplicate calculating precision, recall , f score
i have input file text description , classified level (i.e.levela , levelb). want write svm classifier measure precision, recall , accuracy. looked @ scikit , libsvm want know more step step.
any sample code or basic tutorial nice. suggestion in advance.
these performance measures easy obtain predicted labels , true labels, post-processing step:
- precision = tp / (tp+fp)
- recall = tp / (tp+fn)
- accuracy = (tp + tn) / (tp + tn + fp + fn)
with tp, fp, tn, fn being number of true positives, false positives, true negatives , false negatives, respectively.
Comments
Post a Comment