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
Macro with example index more than one
Dear RapidMiner community,
I currently want to extract some rows with filter and use Extract macro. Since the example index just gives me an example, is it possible to provide a range of examples (e.g. row number 1-15) or some rows (1,4,7, and 15)? Maybe is there another option for this problem?
I currently want to extract some rows with filter and use Extract macro. Since the example index just gives me an example, is it possible to provide a range of examples (e.g. row number 1-15) or some rows (1,4,7, and 15)? Maybe is there another option for this problem?
Tagged:
0
Best Answer
-
BalazsBarany Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 UnicornIf you aggregate a nominal attribute with the "concatenation" function, you'll get the result in this form:
word1|word2|word3|word4
This is also usable as a regular expression in Select Attributes. So if you filtered the top word from the wordlist, aggregate them in this way, Extract Macro on the result, you'll be able to use the macro value as the attribute filter regular expression.
Regards,
Balázs1
Answers
The value of a macro is just a string. If you want to use Extract Macro, you need to set up that string yourself in the example set.
You an use Filter Example Range to get rows 1-15, or Filter Examples for selecting rows based on their content. Then probably Aggregate to group together all the values to one value. For strings, you can use the concatenation function, for numbers there is a large number of available functions.
Regards,
Balázs