"Loop Operator input and output problem"
In the "Loop" operator description it says:
while when I use it to do iterated splittings, the input is always the same for each iteration.
My purpose is just to split a data set into subset1 and 2 and then split subset1 into subset 3 and 4 and so on. The code is here:
.
The output of each nested operator is the input for the following one, the output of the last inner operator will be the input for the first child in the next iteration. The output of the last operator in the last iteration will be the output of this operator.
while when I use it to do iterated splittings, the input is always the same for each iteration.
My purpose is just to split a data set into subset1 and 2 and then split subset1 into subset 3 and 4 and so on. The code is here:
My expectation is that the output in iteration1 is the input of iteration 2 so after 2 iterations the output sample size should be 36=0.6*0.6*100 (100 is the original sample size,0.6 is just a ratio) while it is still 60=0.6*100. Hope I make it clear...Thanks for any help:)
<输出/ >
<宏/ >
<运营商激活d="true" class="process" expanded="true" name="Process">
<运营商激活d="true" class="generate_data" expanded="true" height="60" name="Generate Data" width="90" x="45" y="75"/>
<运营商激活d="true" class="loop" expanded="true" height="76" name="Loop" width="90" x="179" y="120">
<运营商激活d="true" class="split_data" expanded="true" height="76" name="Split Data" width="90" x="112" y="120">
Tagged:
0
Answers
I agree that the documentation is not as clear as it might be, but it may actually true! If you want to do recursion you may be better off storing, manipulating, and retrieving the dataset explicitly, like this.. Clunky, yes, but it produces 36 examples