Association analysis Transform Numerical to Binominal

SunnyLotusFloweSunnyLotusFlowe Member Posts: 37 Contributor II
edited June 2019 in Help

i have found the Numerical to binominal Operator. The problem is, that this Operator is only usefull when applying to a numerical column that have 2 numerical values otherwise many information will get lost.

I am looking for an solution that do the following:

have a column with many different numerical values -> discretize to 10 bins and then -> replace this column by 10 columns which have only the values 1 or 0. 




  • Options
    haddockhaddock Member Posts: 849 Maven
    Hi there,

    Is this what you had in mind?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.0">
      <operator activated="true" class="process" expanded="true" name="Process">
        <process expanded="true" height="335" width="790">
          <operator activated="true" class="generate_data" expanded="true" height="60" name="Generate Data" width="90" x="45" y="75">
            <parameter key="number_of_attributes" value="1"/>
          <operator activated="true" class="discretize_by_bins" expanded="true" height="94" name="Discretize" width="90" x="179" y="75">
            <parameter key="number_of_bins" value="10"/>
            <parameter key="range_name_type" value="short"/>
          <operator activated="true" class="nominal_to_binominal" expanded="true" height="94" name="Nominal to Binominal" width="90" x="367" y="72">
            <parameter key="transform_binominal" value="true"/>
          <connect from_op="Generate Data" from_port="output" to_op="Discretize" to_port="example set input"/>
          <connect from_op="Discretize" from_port="example set output" to_op="Nominal to Binominal" to_port="example set input"/>
          <connect from_op="Nominal to Binominal" from_port="example set output" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
    Good weekend!

  • Options
    SunnyLotusFloweSunnyLotusFlowe Member Posts: 37 Contributor II
    u r a genius!!  ;D    u saved my life  ;)

    thankx a lot!!!!!


Sign In or Register to comment.