Hello,
I have an attribute with values -1 and 1 and I need to convert it to binominal value type. Unfortunatelly, the
Numerical2Binominal converts the value type not to binominal, but to nominal. When I use additional "
Nominal2Binominal" to fix this (as shown below) the attribute is split to two separate attributes.
Is there any elegant way how to convert integer values [-1,1] to binominal?Any help would be really appreciated.
Thanks in advance.
<operator name="Profit" class="AttributeSubsetPreprocessing" expanded="yes">
<parameter key="condition_class" value="attribute_name_filter"/>
<parameter key="attribute_name_regex" value="PROFIT"/>
<operator name="Numerical2Binominal (3)" class="Numerical2Binominal">
<parameter key="min" value="-2.0"/>
</operator>
<operator name="Nominal2Binominal" class="Nominal2Binominal" breakpoints="after">
</operator>
</operator>
RESULT
id ID integer avg = 1395 +/- 782.598 [40.000 ; 2,750.000] 0.0
regular PROFIT = true binominal mode = true (1387), least = false (1324) false (1324), true (1387) 0.0
regular PROFIT = false binominal mode = false (1387), least = true (1324) false (1387), true (1324) 0.0