Questions about Branch operator

morphismmorphism MemberPosts:18Learner I
2019年1月编辑 inHelp

Hello, everybody.

I am using "Branch" operator
and have 4 questions regarding it.


-- 1. If the condition of the Branch operator is "if the number of examples >= 100"
I want to do "something" as usual in "Then" subpart,
but want to do "nothing" in "Else" subpart,

That is, in the "Else" part, just do "nothing", so it is disconected and there is no output from there

Then in some cases, there is error, because of no output from there.

So how can I solve this problem??


-- 2. If the condition of "Branch" is "if the number of examples == 100"
then what should I use as the condition of the Branch operator??


-- 3. If the condition of the Branch is satisfied, it will go to "Then" subpart,
otherwise, it will go to "Else" subpart.

If it goes to "Then" part, I want it to connect to operator A
Otherwise ("Else"), I want it to connect to operator B.

That is, if it passes thru "Then" part, I want to go to operator A after exiting the Branch
Otherwise("Else"), I want to go to operator B after exiting the Branch

Is there any way I can do this??


-- 4. Both "Then" part and "Else" part can have multiple output ports.
If I want to create 3 output ports in the "Then"
and want to create 2 output ports in the "Else"
is it possible??


Thank you in advance

Best Answers

Answers

  • morphismmorphism MemberPosts:18Learner I

    Dear kayman:

    Oh! I understand what you mean. Thank you.

    So question 3 and 4 are solved.


    Other two questions are briefly:


    1. I want to disconnect either one of "Then" or "Else".

    But it may cause error in some cases.

    So what is the best programming if I don't want to do anything and leave it empty in "Else"


    2. If the condition is "the number of examples == 100",

    I guess there is no such condition statement in "Branch"'s condition

  • morphismmorphism MemberPosts:18Learner I

    Hello, mschmitz.

    Nice explanation! I just checked that your explanation works. I learned a lot.

    Thank you and see you again!


    Best wishes,

    K. Chang

Sign InorRegisterto comment.