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

Apply Numeric2Polynominal (or other preprocessing operators) on feature subsets

nicugeorgiannicugeorgian Member Posts: 31 Maven
edited November 2018 in Help
Hi,

I know that the operator Numeric2Polynominal maps all attributes' numeric values to the corresponding nominal values. If I understood correctly, it's only the attributes' values that are mapped, and not the label (whose numerical value is to be predicted).

Is there a way (or an operator) to map only the numeric values of some attributes to the corresponding nominal values? I would actually need it for all but one attribute.

Thanks,
Geo

Answers

  • IngoRMIngoRM Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University Professor Posts: 1,751 RM Founder
    Hi,

    yes, for this purpose the operator "AttributeSubsetPreprocessing" can be used. The attributes on which the inner operators should be applied can be defined via regular expressions. This example applies a discretization on all attributes but on attribute "att3":

    <operator name="Root" class="Process" expanded="yes">
        <operator name="ExampleSetGenerator" class="ExampleSetGenerator">
            <parameter key="target_function" value="sum"/>
        </operator>
        <operator name="AttributeSubsetPreprocessing" class="AttributeSubsetPreprocessing" expanded="yes">
            <parameter key="attribute_name_regex" value="att.*[^3]"/>
            <operator name="BinDiscretization" class="BinDiscretization">
            </operator>
        </operator>
    </operator>
    Cheers,
    Ingo
Sign In or Register to comment.