Removing attributes
egosh
New Altair Community Member
Hello everybody!
I'm new to Rapidminer. I was wondering how do you remove attributes from analysis. For instance if I have imported a data file with x1, x2, x3, x4 and y columns and I only want x1 and x2 to be input parameters for the model of y how do I accomplish this? For now I'm just setting column types to attribute for x1 and x2, skip1, skip2 etc. for attributes I want to remove from model and label for y. But I don't thins is a good way to do this. I found AttributeFilter node but I don't how/if I can use it to perform such an operation.
Thanks
I'm new to Rapidminer. I was wondering how do you remove attributes from analysis. For instance if I have imported a data file with x1, x2, x3, x4 and y columns and I only want x1 and x2 to be input parameters for the model of y how do I accomplish this? For now I'm just setting column types to attribute for x1 and x2, skip1, skip2 etc. for attributes I want to remove from model and label for y. But I don't thins is a good way to do this. I found AttributeFilter node but I don't how/if I can use it to perform such an operation.
Thanks
Tagged:
0
Answers
-
Welcome Egosh!
The attribute filter is more for taking out attributes depending on whether some logical condition is met; if you want to take out attributes depending on their name use the FeatureNameFilter ( for most purposes Feature and Attribute mean the same in RM ). Here's something that takes out att3 and att4 - actually if you're used to regular expressions you'll see that pretty well any combo of attributes could get wiped away with not too much work!<operator name="Root" class="Process" expanded="yes">
<operator name="ExampleSetGenerator" class="ExampleSetGenerator">
<parameter key="target_function" value="sum classification"/>
<parameter key="number_examples" value="2"/>
<parameter key="number_of_attributes" value="6"/>
</operator>
<operator name="FeatureNameFilter" class="FeatureNameFilter">
<parameter key="skip_features_with_name" value="att3|att4"/>
</operator>
</operator>0 -
Great! Thanks, that's what I needed.0