Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
Generate Attributes
Best Answer
-
BalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 UnicornHi!
How are your data structured? Do you have different attributes with true/false and you're interested in the number of true values in that row?
This could be solved with converting true/false to 1/0 (Map operator), parsing these numbers (Parse Numbers) and summing up the values (Generate Aggregation).
Regards,
Balázs0
Answers
Map takes values and changes them into other values. You could change male to m, female to f, or true to 1 and false to 0, whatever you need.
Parse Numbers does exactly what it says: It converts nominal (text) attributes that contain numbers into numeric attributes.
Generate Aggregation is very powerful. It can calculate sum, average, minimum and so on for every row of the input. Contrast this with the Aggregate operator which groups rows together to calculate the result. Generate Aggregation works on the columns of each row and just adds a new attribute.
Regards,
Balázs