I have trained a classifier with classes A,B,C, and D, and when I use ClassifierMeasurements to plot the confusion matrix, the order of the labels is A,B,C,D. How can I change the order of the labels so that they are D,C,A,B (or any other order)? Or, alternatively, how can I plot the confusion matrix myself with any label ordering that I want?


  • $\begingroup$ After 9 questions on the site, you may know already that people expect to see a minimum working example in Mathematica code that exemplifies what you are talking about. It helps when people are able to copy& paste your code just to add the missing step. Please edit your question to improve it. It's also never too late to get your informed badge by taking the tour. $\endgroup$
    – rhermans
    Nov 11, 2021 at 11:21


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.