Hi, the ClusterIteration operator splits up the input example set according to the clusters and applies its inner operators once per cluster. This requires the example set to have a special cluster attribute which can be either created by a Clusterer or might be declared in the attribute description file that was used when the data was loaded.
The following example process generates data and clusters it using kMeans. After this the examples of one cluster are written into files. The filename contains the %{a} macro beeing replaced by the number of the iteration the operator is executed.
The exmapleSetwriter might be replaced by an arbitrary number of operators, doing what ever you want with the exampleSet containing all examples of the current cluster...
Answers
the ClusterIteration operator splits up the input example set according to the clusters and applies its inner operators once per cluster. This requires the example set to have a special cluster attribute which can be either created by a Clusterer or might be declared in the attribute description file that was used when the data was loaded.
The following example process generates data and clusters it using kMeans. After this the examples of one cluster are written into files. The filename contains the %{a} macro beeing replaced by the number of the iteration the operator is executed. The exmapleSetwriter might be replaced by an arbitrary number of operators, doing what ever you want with the exampleSet containing all examples of the current cluster...
Greetings,
Sebastian