Hi,
I have a set of attributes and I need to create a new attribute which counts the number of zeros appearing in all the rows over the set of attributes.
I tried some like the below.
<operator name="Root" class="Process" expanded="yes">
<operator name="ExampleSetGenerator" class="ExampleSetGenerator">
<parameter key="target_function" value="random"/>
<parameter key="number_examples" value="10"/>
</operator>
<operator name="Real2Integer" class="Real2Integer">
<parameter key="round" value="true"/>
</operator>
<operator name="AttributeAggregation" class="AttributeAggregation" breakpoints="before">
<parameter key="attribute_name" value="new"/>
<parameter key="aggregation_attributes" value="att.*"/>
<parameter key="aggregation_function" value="count"/>
</operator>
</operator>
Though the AttrbuteAggregation operator has the COUNT function, it cannot count the occurance of a specific number over the set of attributes.
Thanks for your help,
Shubha