Attribute filter

ratheesan
ratheesan New Altair Community Member
edited November 5 in Community Q&A
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
Tagged:

Answers

  • haddock
    haddock New Altair Community Member
    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>

  • land
    land New Altair Community Member
    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