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

Return collection with "Loop Attribute"?

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

 

Hi,

 

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 Employee-RapidMiner, 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

Answers

  • aruberutouaruberutou Member Posts: 23 Contributor II

    Hi, 

     

    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.

     

    Thanks!

Sign In or Register to comment.