"How to speciffy Group-By-Attributes with the Aggregation Operator"

User: "Legacy User"
New Altair Community Member
Updated by Jocelyn
Hi,

unfortunately I'm not able to count an attribute by a group. What I want to do is:
1. I load a model
2. Apply the data set (discrete label)
3.  try to count for each group of the label the model outcome

I always get an error that my specified group_by_attributes (= flower_type) does not exist.
(flower_type is the label)
Do I have to change the Role of the attribute via ChangeAttributeRole? I tried it already but I does not work

Here the correspondng xml-file:

    <operator name="Teststichprobe" class="ExcelExampleSource">
        <parameter key="decimal_point_character" value=","/>
        <parameter key="excel_file" value="\\Swbfs002\Informationssysteme\Berichtswesen\Aufgaben\Schulungen\RapidMiner\Beispiele\iris_teststichprobe.xls"/>
        <parameter key="first_row_as_names" value="true"/>
        <parameter key="id_column" value="6"/>
        <parameter key="label_column" value="5"/>
    </operator>
    <operator name="ModelLoader" class="ModelLoader">
        <parameter key="model_file" value="\\Swbfs002\Informationssysteme\Berichtswesen\Aufgaben\Schulungen\RapidMiner\Beispiele\model_dt_iris.mod"/>
    </operator>
    <operator name="ModelApplier" class="ModelApplier">
        <list key="application_parameters">
          <parameter key="sum(flower_types)" value="flower types"/>
        </list>
    </operator>
    <operator name="Aggregation" class="Aggregation">
        <list key="aggregation_attributes">
          <parameter key="prediction(flower_type)" value="count"/>
        </list>
        <parameter key="group_by_attributes" value="flower_type"/>
    </operator>
</operator>

Cheers
Thomas

Find more posts tagged with