Remove Unused Values does not sort if no unused values found
land
RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:2,531Unicorn
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.
原因是我下面的代码行n the operator:
原因是我下面的代码行n the operator:
if (translation.newMapping.size() < attribute.getMapping().size()) {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)
if (sortMappings) {
translation.newMapping.sortMappings();
}
translations.put(attribute.getName(), translation);
}
Greetings,
Sebastian
Tagged:
1
Comments
Scott