The RapidMiner community is on read-only mode until further notice. Technical support via cases will continue to work as is. For any urgent licensing related requests from Students/Faculty members, please use the Altair academic forum here.
"How to output the centroids of K-Means Clusters"
![Legacy User](https://us.v-cdn.net/6030995/uploads/defaultavatar/nCCNNSPK1YM69.jpg)
![](https://s3.amazonaws.com/rapidminer.community/vanilla-rank-images/newbie-16x16.png )
Hello,
I wanna get the output of the clusters' centroids through Java code. I have 10 clusters and about 10,000 attributes. So for each cluster, there should be a row with about 10,000 numbers.
Does anybody know how should I do that in Java? Which operator should I use?
thanks beforehand,
Qian
I wanna get the output of the clusters' centroids through Java code. I have 10 clusters and about 10,000 attributes. So for each cluster, there should be a row with about 10,000 numbers.
Does anybody know how should I do that in Java? Which operator should I use?
thanks beforehand,
Qian
Tagged:
0
Answers
I am assuming that you are familiar with the general way how to use RapidMiner from your Java applications. If not, please read the written tutorial (available from our download page), especially the last two chapters and search in both forums for hints for integration.
Let's say you managed to load your data set and have them stored in a ExampleSet object called "exampleSet". Then you should try something like Hope that helps,
Ingo