Remove Unused Values does not sort if no unused values found

landland 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:
                if (translation.newMapping.size() < attribute.getMapping().size()) {
                    if (sortMappings) {
                        translation.newMapping.sortMappings();
                    }
                    translations.put(attribute.getName(), translation);
                }
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
land
1
1 votes

Fixed and Released·Last Updated

RM-3997

Comments

  • sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM ModeratorPosts:2,959Community Manager
    huh....I have never noticed this checkbox all these years.:smile:OK@landpushing to Prod Feedback.

    Scott

Sign InorRegisterto comment.