The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
order of class names in confusion matrix
Hello fellow data analysts,
I was wondering if I can change the order of classes in a confusion matrix. For instance, I have five classes, which I want them to appear in conf matrix in the following order: Good, Satisfactory, Fair, Poor, Very Poor (i e their order matters). But now they are sorted this way: Very Poor, Fair, Satisfactory, Poor, Good. Based on what rationale rapidminer sorts the labels like this? Obviously, it is not alphabetical. PS the type of label attribute is "polynomial."
Thank you in advance,
0
Answers
Hi,
RapidMiner maps Polynomial data types to integers in the background. This is in many cases not noteworthy for a user. I would argue in your case it might be. Your case is maybe a bit different.
One could try to do Sort + Append with only one input. This usually forces a remapping of all indices. But that would yield to an alphabetically sorted confusion matrix.
Best.
Martin
Dortmund, Germany
You could rename your categories with an integer preceding the actual name reflecting the order that you want, and then use @mschmitz 's sorting suggestion after that. This is the only reliable way I have found for getting attributes with many nominal categories to appear in the order that I want in using RapidMiner. It's a bit frustrating to do it that way but it will work.
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
Telcontar120 and @mschmitz. Seems a bit frustrating, but I will try it for now. Best,
@mschmitz
Could you please elaborate on the idea of "Sort + Append with only one input"? I did not get it.
Thanks,
@mschmitz
Could you please elaborate on the idea of "Sort + Append with only one input"? I did not get it.
Thanks,
Anyone?
@Pirehelokan,
attached is an example. It's ordering the classes alphabetically or inverse alphabetically.
Cheers,
Martin
Dortmund, Germany