Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
How to use a counter to count the numbers of times loop_2 ran if its inside a loop_1.
Himanshu_Pant
Member Posts: 46 Learner II
in Help
I have a loop: loop example (loop_21). Inside that I have a simple loop (loop_2 ). I want keep a counter inside loop_2 and append the output.
For Example: Loop_1 runs three times and loop_2 runs four times. So I want count = 1, count = 2, count = 3, .......upto, count = 12
For Example: Loop_1 runs three times and loop_2 runs four times. So I want count = 1, count = 2, count = 3, .......upto, count = 12
0
Best Answers
-
JEdward RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 UnicornHave a look at your loop (Loop 2) operator do you have the box "Enable Parallel Execution" ticked? This may throw off your counter as the loop will be executing in multiple threads. If you uncheck this box it will perform one loop and then the next one, this should resolve your issue.
1 -
MartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,529 RM Data ScientistHi,that's likely because of the parallel execution? Did you try to turn it off?Best,Martin- Sr. Director Data Solutions, Altair RapidMiner -
Dortmund, Germany0
Answers
Dortmund, Germany