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.

Attribute filter

ratheesanratheesan Member Posts: 68 Maven
Hi,

Suppose I filter numerical attributes only  for applying some functions  using AttributeFilter operator.Can i select the nominal attributes from my data after completion of the function without using examplesourse operator.

Thanks
Ratheesan

Answers

  • haddockhaddock Member Posts: 849 Maven
    Hi there,

    Look into the IOObjects, using which you can store your example set, and then repeatedly butcher and resurrect it, as in the following....
    <operator name="Root" class="Process" expanded="yes">
       <operator name="Generate 100 Examples Numerical label, 5 numerical, 5 nominal attributes" class="OperatorChain" expanded="no">
           <operator name="Generate Regression Problem" class="ExampleSetGenerator">
               <parameter key="target_function" value="polynomial"/>
           </operator>
           <operator name="IdTagging" class="IdTagging">
           </operator>
           <operator name="Generate Nominal Attributes" class="NominalExampleSetGenerator">
               <parameter key="number_of_values" value="2"/>
           </operator>
           <operator name="IdTagging 2" class="IdTagging">
           </operator>
           <operator name="ExampleSetJoin" class="ExampleSetJoin">
               <parameter key="remove_double_attributes" value="false"/>
           </operator>
           <operator name="Store the combined data set" class="IOStorer">
               <parameter key="name" value="AllData"/>
               <parameter key="io_object" value="ExampleSet"/>
           </operator>
       </operator>
       <operator name="Get back a COPY of the Data set" class="IORetriever">
           <parameter key="name" value="AllData"/>
           <parameter key="io_object" value="ExampleSet"/>
           <parameter key="remove_from_store" value="false"/>
       </operator>
       <operator name="Remove nominal attributes" class="FeatureValueTypeFilter">
       </operator>
       <operator name="LinearRegression" class="LinearRegression">
           <parameter key="keep_example_set" value="true"/>
           <parameter key="eliminate_colinear_features" value="false"/>
           <parameter key="use_bias" value="false"/>
       </operator>
       <operator name="ModelApplier" class="ModelApplier">
           <list key="application_parameters">
           </list>
       </operator>
       <operator name="Get another COPY of the whole dataset" class="IORetriever">
           <parameter key="name" value="AllData"/>
           <parameter key="io_object" value="ExampleSet"/>
           <parameter key="remove_from_store" value="false"/>
       </operator>
       <operator name="Restore the Nominals" class="ExampleSetJoin">
       </operator>
    </operator>

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    that's one possibility, but in some cases this effort isn't needed: If you only want to have an attribute subset temporarily, you could use the AttributeSubsetPreprocessing Operator. It will deliver the subset to the inner operators and re-add the other operators to the resulting example set.

    Greetings,
      Sebastian
Sign In or Register to comment.