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

Removing attributes

egoshegosh Member Posts: 3 Contributor I
edited November 2018 in Help
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

Answers

  • haddockhaddock Member Posts: 849 Maven
    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>
  • egoshegosh Member Posts: 3 Contributor I
    Great! Thanks, that's what I needed.
Sign In or Register to comment.