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
Remove Unused Values does not sort if no unused values found
land
RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
Hi,
I just noticed that the internal mapping is not sorted as indicated by the parameter "sort alphabetically" of the Remove Unused Values Operator, if there are no unused values.
Reason for that are the following lines of code in the operator:
Reason for that are the following lines of code in the operator:
if (translation.newMapping.size() < attribute.getMapping().size()) {<br> if (sortMappings) {<br> translation.newMapping.sortMappings();<br> }<br> translations.put(attribute.getName(), translation);<br> }Obviously the mapping needs to be put into the collection, when the sorting is on OR there is a reduced mapping size. Otherwise the working of the operator depends on the actual given data set which is really hurting in automated scenarios (or when creatively misusing the operator to sort the internal mapping)
Greetings,
Sebastian
Tagged:
1
Comments
Scott