Set Role
Hey Guys, I'm new to rapidminer!
So I am trying to set an 'ignore' role to a number of my columns in rapidminer. So I search the "Set Role" from the repository then I initially input the column that I want to change the role to 'ignore' then I clicked on the "Edit List" to add the other column, after I've done this and run the process it only applies to one of the columns that I have modified. Is there anything that I can do to address this problem?
Best Answer
-
jczogalla Employee-RapidMiner, Member Posts: 144 RM Engineering
Hi!
In RapidMiner, roles are unique. So in your scenario, you set one attribute after the other to that role, but in the end, only the last one retains the role.
What exactly do you want to do? Maybe you can make better use of the "Select Attributes" operator, which lets you select the attributes you want to use from then on.
1
Answers
Thanks for the reply!
So I have like 15 columns and I only want to make use of the 10 columns for making my decision tree as the other 5 are irrelevant.
And I also made use of the "Select Attributes" operator that you suggested and it worked!
Thank you so much!
Cheers!
You can use a single Set Role operator to define multiple role definitions at once - so if for some reason you want to see five attributes in your result set tat should not be considered by the algorithm(s) you are using, just create five different role names, each being the name of the attribute you want in your result set. Each of these attributes will appear in a dark yellow background - which means these attributes are now special attributes, and not regular attributes. Special attributes are not considered when generating predictions. Hope this helps and best wishes, Michael Martin
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts