featurenamefilter

m_r_nour
m_r_nour New Altair Community Member
edited November 5 in Community Q&A
Hi

to filter features with  specific names , we can use featurenamefilter but how?
for instance I want to filter all feature except the following features:

Volume, Surface, information*var   (-> here * is as a wildcard)


thanks
REZA
Tagged:

Answers

  • m_r_nour
    m_r_nour New Altair Community Member
    hi  again:
    my features names which I want to save them are:
    CV.INFO_CORR2
    VOLUME
    CV.ENTROPY
    CV.INTENSITY.1

    and I used  following parameters:
    <parameter key="skip_features_with_name" value=".*"/>
    <parameter key="except_features_with_name" value="CV.INFO_CORR2 || VOLUME|| CV.ENTROPY||CV.INTENSITY.1"/>

    first line works , but 2nd line nooooooooooooooooooooo >:(
           
    also  I checked following wildcards
    |.  and |


    but again noooooooo



  • m_r_nour
    m_r_nour New Altair Community Member
    R**Q

    I did it also | but doesn't work
  • haddock
    haddock New Altair Community Member
    <operator name="Root" class="Process" expanded="yes">
        <operator name="ExampleSetGenerator" class="ExampleSetGenerator">
            <parameter key="target_function" value="random"/>
            <parameter key="number_of_attributes" value="10"/>
        </operator>
        <operator name="ChangeAttributeName" class="ChangeAttributeName">
            <parameter key="old_name" value="att1"/>
            <parameter key="new_name" value="CV.INFO_CORR2"/>
        </operator>
        <operator name="ChangeAttributeName (2)" class="ChangeAttributeName">
            <parameter key="old_name" value="att2"/>
            <parameter key="new_name" value="VOLUME"/>
        </operator>
        <operator name="ChangeAttributeName (3)" class="ChangeAttributeName">
            <parameter key="old_name" value="att3"/>
            <parameter key="new_name" value="CV.ENTROPY"/>
        </operator>
        <operator name="ChangeAttributeName (4)" class="ChangeAttributeName">
            <parameter key="old_name" value="att4"/>
            <parameter key="new_name" value="CV.INTENSITY.1"/>
        </operator>
        <operator name="FeatureNameFilter" class="FeatureNameFilter">
            <parameter key="skip_features_with_name" value=".*"/>
            <parameter key="except_features_with_name" value="CV.INFO_CORR2|VOLUME|CV.ENTROPY|CV.INTENSITY.1"/>
        </operator>
    </operator>
  • m_r_nour
    m_r_nour New Altair Community Member
    thanks

    I got my fault I used " | " not "|"

    again thanks