Return only the last value from Loop

User: "Ray8989"
New Altair Community Member
Updated by Jocelyn
Hi There, 
I started using rapidminer just today. There's one problem that I'm facing and I can't find the solution anywhere. 
Objective: So I want to do clustering for n max iterations, for each n I want to see the centroid value, after this, I want to only work with the example set that the clustering algorithm returned in the last run. 

I have done half of it, i.e, I have used Loop Parameter to see all n centroids. Each is the output of the Loop, but the problem here is that, each n also returns a corresponding example set, so I end up with n example sets which I do NOT want.
I only want the final example set. How can I get that example set? 

Regards
Sort by:
1 - 1 of 11
    User: "lionelderkrikor"
    New Altair Community Member
    Accepted Answer
    @Ray8989,

    Can you please guide me where and how to use macro?
    Do you refer to Brian's method ?
    If yes, you will need the Extract Macro from Collection operator. This operator will detect the size of your collection  (equal to n in your case) and store this value as a macro. Then you can use this macro inside the Select operator to "capture" the last example set of your collection as described by Brian.
    To use Extract Macro from Collection operator you will need to install the Jackhammer extension (this extension must be installed from the MarketPlace).

    Please check the process in attached file and tell me if it answers to your need.

    Regards,

    Lionel