Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java mahout get clusters centers

    IntWritable key1 = new IntWritable();
    ClusterWritable value1 = new ClusterWritable();
    while (reader1.next(key1, value1)) {

        System.out.println(value1.getValue().getCenter()+ " ------------ "
                + key1.toString());
    }
    reader1.close();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #mahout #clusters #centers
ADD COMMENT
Topic
Name
8+8 =