"Custom Roles using Set Role operator"
In RapidMiner Studio it is often useful to have certain attributes be "ignored" by modelers, or just have more than one "label" special attribute. Here's a hidden trick to make this happen using the "Titanic" data set:
1. Using the Set Role operator, delete the word "regular" in the target role field and replace it with a name that is not part of the standard list (regular, label, id, etc...).
2. If you want to add additional "roles", go to "set additional roles" and do the same thing:
That's about it. You can see here that the Decision Tree shows Sex and Age in the first tree, and ignores it in the second.
Titanic data set with no custom roles Titanic Decision Tree with no custom roles. Note "Sex" at top node.
Titanic data set with two custom roles for Sex and Age same data set showing the names of the custom roles in the Statistics view
Titanic Decision Tree with custom roles being ignored.
The process XML is attached for reference.