The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"How to speciffy Group-By-Attributes with the Aggregation Operator"
Legacy User
Member Posts: 0 Newbie
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
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
Tagged:
0
Answers
I fixed it wih an appropriate Performance-Operator (Anyway, I would like to know how to solve my explained problem above.
Cheers
Thomas
probably the "flower_type" attribute was still set to a special role (label) and was hence not found by the aggregation. Here is an example:
Cheers,
Ingo