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

To execute multiple sub processes

arjunarjun Member Posts: 1 Learner II
edited 2018 09 in Help

Hi,

Need help in using switch case without a break so that it uses a right case for execution in Rapidminer 

switch (n)
​{
case constant1:
// code to be executed if n is equal to constant1;
break;

case constant2:
// code to be executed if n is equal to constant2;
break;
.
.
.
default:
// code to be executed if n doesn't match any constant
}

 

 

Answers

  • jczogalla_edujczogalla_edu Member Posts: 2 Contributor I

    Hi arjun,

    you can use the "Select Subprocess" operator to model each subprocess you need. In the parameter "select which" you can use a macro that you have to create before this operator to select the apropriate subprocess.

     

    Cheers

    Jan

  • Telcontar120Telcontar120 RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,635 Unicorn

    If you have only two conditions then you can also use the related "Branch" subprocess operator.

     

    Brian T.
    Lindon Ventures 
    Data Science Consulting from Certified RapidMiner Experts
Sign In or Register to comment.