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
[SOLVED] Controlling map order of nominal values
tennenrishin
Member Posts: 177 Contributor II
A "map order" is alluded to in the tooltip of the "sort alphabetically" parameter of the Removed Unused Values operator.
Premise 1:
A set of nominal values has an inherent "map order".
Premise2:
This "map order" determines the sequence in which elements are arranged on a chart axis, when a nominal attribute is selected for that axis (e.g. bubble chart with nominal x-axis attribute).
Question1:
Are the premises above correct?
Question2:
Other than the "sort alphabetically" mechanism of the Remove Unused Values Operator, are there any ways to control the "map order"? (...in order to control subsequent chart axis order for nominal attributes.)
Premise 1:
A set of nominal values has an inherent "map order".
Premise2:
This "map order" determines the sequence in which elements are arranged on a chart axis, when a nominal attribute is selected for that axis (e.g. bubble chart with nominal x-axis attribute).
Question1:
Are the premises above correct?
Question2:
Other than the "sort alphabetically" mechanism of the Remove Unused Values Operator, are there any ways to control the "map order"? (...in order to control subsequent chart axis order for nominal attributes.)
Tagged:
0
Answers
in RapidMiner, nominal values are represented internally as integer values which are mapped to strings during display and model creation etc. This is for reducing the memory consumption, since instead of storing over and over again the same (probably long) strings, storing just numbers and a mapping usually leaves a smaller memory footprint.
When RapidMiner reads data, it maps the first string in a column to "0", the second one to "1" etc. So the only possibility to control the ordering of the mapping is by ordering your input data. Btw, if you are using the new "adavanced charts" instead of the "plot view", nominal values are always sorted alphabetically.
Best,
Marius
Are there plans to support advanced charts in the reporting extension in the near future?
Is it possible In Advanced Charts to plot multiple binomial values on the Nominal axis?
The error message "Mixed nominal values on axis ... All nominal series configurations on an axis must refer to the.same nominal mapping..." suggests this.
I have to two binominal attributes with value range {true, false}, used the "Remap Binomials" to define false as negative and true as positive, but that does not result in the same nominal mapping.
Thanks,
Bart
if I remember correctly, that is not possible, even if the message implies that. However, you can create a second binominal axis. That is certainly less than optimal, but at least it will bring you multiple nominal attributes into the chart.
Best, Marius
One way to reorder nominal values is to reorder the exampleset, and then perform a trivial (i.e. identity) Generate Attributes operation on the attribute in question.
In the example below, compare eg x vs x scatter chart of the two outputs.