Options

"how to get the cluster models using kmeans"

helpmehelpme Member Posts: 1 Contributor I
edited June 2019 in Help
I have created my exampleset already following the tutorial. I created my kmeans operator and now I want to apply kmeans to my sample set. Now, how do I do this? I want to be able to retrieve the information about the clusters (their centroids) and I also want to know the assignment of clusters for all the data.

I found this solution in another thread:
                Operator kMeans = OperatorService.createOperator(KMeans.class);
CentroidBasedClusterModel clusterModel = (CentroidBasedClusterModel) kMeans.apply(new IOContainer(exampleSet));

but the class for CentroidBasedClusterModel could not be found. I am using the .jar file that I got after installing RapidMiner v5.0 Community Edition.
Tagged:

Answers

  • Options
    landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    the CentroidClusterModel is now called CentroidClusterModel :)
    I would suggest downloading the Javadoc of the API from source forge, a quick search after centroid would have solved that issue in seconds.

    Greetings,
      Sebastian
Sign In or Register to comment.