A program to recognize and reward our most engaged community members
Shubha wrote:One more question, can i specicy all the variables namely (att1, att2, att3, att4, att5) in the aggregate function? (in the above code i posted, only att1 is used). I tried by using the regular expression, att.*. But there is an error, "The attribute 'att.*' doesn't exist". I am sure that i am missing something... What could it be?
<operator name="Aggregation" class="Aggregation"> <list key="aggregation_attributes"> <parameter key="att1" value="average"/> <parameter key="att2" value="average"/> </list> <parameter key="group_by_attributes" value="cluster"/></operator>
<operator name="Root" class="Process" expanded="yes"> <operator name="ExampleSetGenerator" class="ExampleSetGenerator"> <parameter key="number_examples" value="25"/> <parameter key="target_function" value="random"/> </operator> <operator name="AttributeFilter" class="AttributeFilter"> <parameter key="condition_class" value="attribute_name_filter"/> <parameter key="parameter_string" value="att.*"/> </operator> <operator name="KMeans" class="KMeans"> <parameter key="k" value="3"/> </operator> <operator name="AttributeAggregation" class="AttributeAggregation"> <parameter key="aggregation_attributes" value="at.*"/> <parameter key="attribute_name" value="nu"/> </operator></operator>
<process version="4.3"> <operator name="Root" class="Process" expanded="yes"> <operator name="ExampleSetGenerator" class="ExampleSetGenerator"> <parameter key="number_examples" value="200"/> <parameter key="number_of_attributes" value="4"/> <parameter key="target_function" value="random"/> </operator> <operator name="ExampleSetTranspose" class="ExampleSetTranspose"> </operator> <operator name="AttributeAggregation" class="AttributeAggregation"> <parameter key="aggregation_attributes" value="at.*"/> <parameter key="aggregation_function" value="average"/> <parameter key="attribute_name" value="Mmm"/> </operator> <operator name="FeatureNameFilter" class="FeatureNameFilter" breakpoints="after"> <parameter key="skip_features_with_name" value="at.*"/> </operator> <operator name="ExampleSetTranspose (2)" class="ExampleSetTranspose"> </operator> </operator></process>