Hi,
This question is with regard to the RepeatUntilOperatorChain operator. As I understand this operator can do a task for a certain iterations and also for some timeout.
Now, I want to perform certain operations for random number of times. So, I set the max_iteraions parameter to be say 100. In one run i need only say 15 iterations and in another run i may need say 3 iterations etc. Suppose that i got the result at say 5th iteration. Then, i need to terminate the loop, instead of carrying till 100 iterations. How do i do this? Is there any other operator which can do the same job?
I herewith give an example.
<operator name="Root" class="Process" expanded="yes">
<operator name="ExampleSetGenerator (3)" class="ExampleSetGenerator">
<parameter key="target_function" value="spiral cluster"/>
<parameter key="number_of_attributes" value="2"/>
</operator>
<operator name="RepeatUntilOperatorChain" class="RepeatUntilOperatorChain" expanded="yes">
<parameter key="max_iterations" value="5"/>
<operator name="SingleMacroDefinition" class="SingleMacroDefinition">
<parameter key="macro" value="k"/>
<parameter key="value" value="10"/>
</operator>
<operator name="LOFOutlierDetection (2)" class="LOFOutlierDetection">
<parameter key="minimal_points_lower_bound" value="%{k}"/>
<parameter key="minimal_points_upper_bound" value="%{k}"/>
</operator>
<operator name="IOStorer" class="IOStorer">
<parameter key="name" value="Mydata"/>
<parameter key="io_object" value="ExampleSet"/>
<parameter key="remove_from_process" value="false"/>
</operator>
</operator>
<operator name="IORetriever" class="IORetriever">
<parameter key="name" value="Mydata"/>
<parameter key="io_object" value="ExampleSet"/>
</operator>
</operator>
Actually in the above code in each iteration, i will change the macro value k. And I terminate for k, which has satifactory results. So, how to break the loop after certain condition is met?
Thanks, Shubha