Apply Numeric2Polynominal (or other preprocessing operators) on feature subsets

nicugeorgiannicugeorgian Member Posts: 31 Maven
edited November 2018 in Help

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.



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

    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 name="AttributeSubsetPreprocessing" class="AttributeSubsetPreprocessing" expanded="yes">
            <parameter key="attribute_name_regex" value="att.*[^3]"/>
            <operator name="BinDiscretization" class="BinDiscretization">
Sign In or Register to comment.