Return only the last value from Loop

Ray8989Ray8989 MemberPosts:4Learner I
edited May 2020 inHelp
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 fornmax iterations, for eachnI 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 allncentroids. Eachnis the output of the Loop, but the problem here is that, eachnalso returns a corresponding example set, so I end up withnexample sets which I do NOT want.
I only want the final example set. How can I get that example set?

Regards

Best Answer

Answers

  • Telcontar120Telcontar120 Moderator, RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:1,635Unicorn
    如果你有examplesets被ret的集合urned, you can just use the "Select" operator to specify the one you want to keep (you could even do this automatically by making a macro for the loop iterations and using that as the number of the value to return in the Select operator). If you are trying to do something more complex perhaps you can post your xml so it is a bit clearer.
    Brian T.
    Lindon Ventures
    Data Science Consulting from Certified RapidMiner Experts
    lionelderkrikor
  • lionelderkrikorlionelderkrikor Moderator, RapidMiner Certified Analyst, MemberPosts:1,195Unicorn
    Hi@Ray8989,

    Maybe I have misunderstood your final goal,
    but you can apply the clustering model withmax_runs = nto your dataset in parallel of theLoop Parametersoperator.
    Please look at the process in attached file to understand what I mean...

    Regards,

    Lionel
  • Ray8989Ray8989 MemberPosts:4Learner I
    edited May 2020
    Thanks
  • Ray8989Ray8989 MemberPosts:4Learner I
    lionelderkrikor, It does work. And that is what the end goal was. But I want to use only one instance of Clustering.
    Can you please guide me where and how to use macro?
  • Ray8989Ray8989 MemberPosts:4Learner I
    @lionelderkrikorworks exactly as I wanted! Thank you!
    lionelderkrikor
Sign InorRegisterto comment.