The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

How to end a loop early

AndryehAndryeh Member Posts: 8 Learner I
Near the beginning of my process I loop through a bunch of different examplesets that usually ends up with nothing left if it's not one I want to use. At that point I start getting "Input is missing" problems. Is there anything like the continue statement in Python? How can I handle all these issues without turning my process into a mess?

Best Answers

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn
    Solution Accepted
    Hi,

    I usually solve this with an outer loop and an inner Branch operator that checks the additional conditions (e. g. break criterion).

    Regards,
    Balázs
  • AndryehAndryeh Member Posts: 8 Learner I
    Solution Accepted
    Thanks, that's how I've solved it. It seems counter-productive to the whole RapidMiner ethos having to do this. RM is supposed to produce readable processes (ie, boxes and lines rather than code) but by having to bury them all inside subprocesses it makes everything confusing. It's a pain that there seems to be so much thought put into how you can change the flow of data dynamically but there only seems to be small handful of processes that can actually change the order of execution.
Sign In or Register to comment.