Skip to main content

Table 2 Confusion matrix

From: Use of sentiment analysis for capturing hospitalized cancer patients' experience from free-text comments in the Persian language

 

Predicted class

Positive

Negative

Real class

Positive

True Positive (TP):

Patients’ message had positive label and the model classified it correctly

False Positive (FP):

Patients’ message had negative label and the model classified it to positive

Negative

False Negative (FN):

Patients’ message had positive label and the model classified it to negative

True Negative (TN):

Patients’ message had negative label and the model classified it correctly