Professional Documents
Culture Documents
•We use the model built based on training data to classify test data,
and compare the predictions with the original label of each test
document;
Example
• In test_file, we have: After running the svm_classify, the
Predictions may be:
or
Predicted
negative positive
negative a b
Actual
positive c d
Evaluations of Performance
• Accuracy (AC) is the proportion of the total number of predictions
that were correct.
AC = (a + d) / (a + b + c + d)
• Recall is the proportion of positive cases that were correctly
identified.
R = d / (c + d) Actual positive cases number
•
Example
A ctu a l T e st C a se s: P r e d ic te d :
20
50
4 5 0 " -" 400