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] Macros and the Sort operator"
Hi, I'm using RapidMiner 5.3 (64 bit version) on Windows 7.
Is there any way to sort a data set by a macro operator? I would like to sort a data set based on the increasing value of an attribute, with the name of the attribute being stored in a macro. I do not see the macro in the attribute name drop down box for the Sort operator, so I typed the macro name into the attribute name box for the Sort operator and hit the play button for the process to run.
However, the process fails with the message "No attribute selected. Select an attribute by clicking on the 'attribute name' drop-down box" Offending operator:Sort
Is there any other way to sort or extract the top x examples in a data set by a increasing/decreasing macro?
Is there any way to sort a data set by a macro operator? I would like to sort a data set based on the increasing value of an attribute, with the name of the attribute being stored in a macro. I do not see the macro in the attribute name drop down box for the Sort operator, so I typed the macro name into the attribute name box for the Sort operator and hit the play button for the process to run.
However, the process fails with the message "No attribute selected. Select an attribute by clicking on the 'attribute name' drop-down box" Offending operator:Sort
Is there any other way to sort or extract the top x examples in a data set by a increasing/decreasing macro?
0
Answers
the error message is a bit misleading, this "no attribute selected" also appears if an invalid attribute name is entered. To use the value of a macro you have to surround the macro name with percent and curly braces, like this: %{myMacro}. In all parameters this will deliver the value of the macro. To check if the macro is correctly set you can use a breakpoint before the Sort operator and activate the Macro View under Help -> View -> Macros.
Best regards,
Marius
I suggest that we fix the misleading error message - and log this in RapidMiner's bug/feature request tracking system, if this hasn't already been done.
Regards,
Kiribati
Best regards,
Marius