"infinite Loop and break"

xmarceksxmarceks MemberPosts:2Contributor I
edited June 2019 inHelp
How can I model a infitity loop that breaks in a specific situation. A macro is set at value etc. stop=0

Answers

  • SkirzynskiSkirzynski MemberPosts:164Maven
    Tricky one! Unfortunately the "Loop until" operator is not capable of defining a condition based on a macro (I will create a ticket for this one). You can work around this by misusing the exception operators. Wrap your loop inside a "Handle Exception" operator, use "Loop" with MAX_INTEGER iterations and place a branch operator inside which will throw an exception on a particular macro value. See example process below:






    <宏/ >

    <运营商激活d="true" class="process" compatibility="5.3.009" expanded="true" name="Process">

    <运营商激活d="true" class="handle_exception" compatibility="5.3.009" expanded="true" height="76" name="Handle Exception" width="90" x="112" y="30">

    <运营商激活d="true" class="loop" compatibility="5.3.009" expanded="true" height="76" name="Loop" width="90" x="112" y="30">



    <运营商激活d="true" class="print_to_console" compatibility="5.3.009" expanded="true" height="76" name="Print to Console" width="90" x="112" y="30">


    <运营商激活d="true" class="branch" compatibility="5.3.009" expanded="true" height="76" name="Branch" width="90" x="407" y="30">

    <参数键= value =“condition_value % {iteration}>10"/>

    <运营商激活d="true" class="throw_exception" compatibility="5.3.009" expanded="true" height="76" name="Throw Exception" width="90" x="168" y="30">

















































  • xmarceksxmarceks MemberPosts:2Contributor I
    thanks, I`m trying it now. But it seems to work about 50 hours;). Nevermind.

    The next problem is that RM sometimes failed to build a decision tree. I loop over examples (170 000 times) and after a few examples I design a decision tree build model. Within this loop it builds it cca 1600 times (that`s ok), but after 150th a decision tree failed and the model look like a one leaf and so every examples is labeled with one label, however there are two.

    Is there a way to detect this behaviour simply? Can RM compare two models?
    I have tried the group models, but I don`t know how it is worked. Does it take an average of confidence?

    thanks

Sign InorRegisterto comment.