The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 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.
Options

"Is there any way to break a loop?"

wesselwessel Member Posts: 537 Maven
edited June 2019 in Help
Hey,

Is there any way to break a loop?

Loop

Synopsis
Performs its inner operators k times.

As far as I can tell, there is no way to stop the loop early, so not executing the full k times?

Best regards,

Wessel

Answers

  • Options
    MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Hi,

    no that's not possible. The next version will feature a Stop operator, which will however stop the complete process.
    What you could do is to use a Branch operator which checks a macro, which you can set in the inner process of Branch to a "stop" value. If the condition of Branch does not longer match, it will execute it's right inner process, which will be pretty fast if you leave it empty.

    Best, Marius
  • Options
    wesselwessel Member Posts: 537 Maven
    Ah, the branching to "empty process" seems a nice solution, thanks!
Sign In or Register to comment.