Return only the last value from Loop
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
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
0
Best Answer
-
lionelderkrikor Moderator, RapidMiner Certified Analyst, MemberPosts:1,195Unicorn@Ray8989,
Can you please guide me where and how to use macro?Do you refer to Brian's method ?
If yes, you will need theExtract Macro from Collectionoperator. This operator will detect the size of your collection (equal tonin your case) and store this value as a macro. Then you can use this macro inside theSelectoperator to "capture" the last example set of your collection as described by Brian.
To useExtract Macro from Collectionoperator you will need to install theJackhammer 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
5
Answers
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
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
Can you please guide me where and how to use macro?