Return collection with "Loop Attribute"?

aruberutouaruberutou Member Posts: 23 Contributor I
edited November 2018 in Help




Apologies if this has been answered elsewhere. But I have been trying to build a nested loop operator, that works over examples and attributes, treating each attribute as a separate case.


Standard loop works fine for processing examples, collections are returned as appropriate. Loop attribute, however, does not build collections and instead returns only the last processed table.


Is that supposed to be how it works? If so, any advice on getting "loop attribute" to build collections, in a fashion identical to the standard loop operator?


Thanks in advance!

Best Answers

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn
    Solution Accepted

    Have you tried using the Append operator right after the loop?

  • bhupendra_patilbhupendra_patil Administrator, Employee, Member Posts: 168 RM Data Scientist
    Solution Accepted

    try connecting the output to res port inside and then the res port of the "loop attributes" will deliver hte collection as you probably need


  • aruberutouaruberutou Member Posts: 23 Contributor I



    Thanks for the solutions. Using the res port solved the problem beautifully. Append then merged the collection just fine.


    One minor hicup was that some example sets were empty, which Append didnt like.


    I resolved this by using "loop collection" with "branch". The branch condition was set to "min_examples = 1", with "else" set to NOT pass the example set. This effectively filtered out blank example sets, fixing the problem with append.



Sign In or Register to comment.