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

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.