I have a 3x3 confusion matrix for three sentiment classes - positive, negative and neutral. The classification was done with
# Train and test the model using the document feature matrix reviewClassifier <- textmodel_nb(reviewCorpusdfmTrain, englishReviewsTrain$rating) # training predicted_class <- predict(reviewClassifier, newdata = reviewCorpusdfmTest) # testing tab_class <- table(englishReviewsTest$rating, predicted_class) # Check performance of the classifier confMat <- confusionMatrix(tab_class, mode = "everything") confMat Confusion Matrix and Statistics predicted_class Negative Neutral Positive Negative 27 4 5 Neutral 2 0 2 Positive 8 5 153
How can I stop
Quanteda from sorting the classes in alphabetical order? I will prefer it to be Positive, Negative, Neutral.
Also, I can understand three outcomes clearly - True Positive, True Negative and True Neutral. How do I read or interpret the other six outcomes?